Skip to content
Snippets Groups Projects
Commit ce9a2a53 authored by Jose Luis Bellido Rojas's avatar Jose Luis Bellido Rojas Committed by CG Monroe
Browse files

Issue #3167630 by jlbellido: Messenger service is null

parent aa158782
No related branches found
No related tags found
No related merge requests found
...@@ -460,7 +460,7 @@ class LayoutOptions extends LayoutDefault implements PluginFormInterface, Contai ...@@ -460,7 +460,7 @@ class LayoutOptions extends LayoutDefault implements PluginFormInterface, Contai
public function getOptionPlugin(string $optionId, array $optionDefinition, bool $bypassCache = FALSE) { public function getOptionPlugin(string $optionId, array $optionDefinition, bool $bypassCache = FALSE) {
if (!isset($this->optionPlugins[$optionId]) || $bypassCache) { if (!isset($this->optionPlugins[$optionId]) || $bypassCache) {
if (!isset($optionDefinition['plugin'])) { if (!isset($optionDefinition['plugin'])) {
$this->messenger->addError(t("Option definition, @option (@title), does not define a plugin id", ['@option' => $optionId, '@title' => isset($optionDefinition['title']) ? $optionDefinition['title'] : ''])); $this->messenger()->addError(t("Option definition, @option (@title), does not define a plugin id", ['@option' => $optionId, '@title' => isset($optionDefinition['title']) ? $optionDefinition['title'] : '']));
$this->getLogger('layout_options')->warning("Option definition, @option (@title), does not define a plugin id", ['@option' => $optionId, '@title' => '' /*$optionDefinition['title']*/]); $this->getLogger('layout_options')->warning("Option definition, @option (@title), does not define a plugin id", ['@option' => $optionId, '@title' => '' /*$optionDefinition['title']*/]);
return NULL; return NULL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment