Loading CHANGELOG.txt +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ Metatag 8.x-1.x-dev, 2022-xx-xx metatag_get_route_entity throws notice when route is null. #3266326 by victoria-marina, Guilherme Rabelo, DamienMcKenna: Use Dependency Injection in MetatagManager. #3265567 by DamienMcKenna, Anatolij Zajika, PCate: PHP8 undefined array key "description". Metatag 8.x-1.19, 2022-01-06 Loading src/Controller/MetatagController.php +2 −2 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ class MetatagController extends ControllerBase { ]; // Group description. $build[$group_name]['description'] = [ '#markup' => $group_definition['description'], '#markup' => $group_definition['description'] ?? '', '#prefix' => '<p>', '#suffix' => '</p>', ]; Loading Loading @@ -121,7 +121,7 @@ class MetatagController extends ControllerBase { $row = []; $row['description'] = [ 'data' => [ '#markup' => $definition['description'], '#markup' => $definition['description'] ?? '', ], 'colspan' => 8, ]; Loading src/MetatagManager.php +3 −3 Original line number Diff line number Diff line Loading @@ -234,7 +234,7 @@ class MetatagManager implements MetatagManagerInterface { foreach ($metatag_groups as $group_name => $group_info) { $groups[$group_name]['id'] = $group_info['id']; $groups[$group_name]['label'] = $group_info['label']->render(); $groups[$group_name]['description'] = $group_info['description']; $groups[$group_name]['description'] = $group_info['description'] ?? ''; $groups[$group_name]['weight'] = $group_info['weight']; } Loading Loading @@ -331,7 +331,7 @@ class MetatagManager implements MetatagManagerInterface { // Create the fieldset. $element[$group_name]['#type'] = 'details'; $element[$group_name]['#title'] = $group['label']; $element[$group_name]['#description'] = $group['description']; $element[$group_name]['#description'] = $group['description'] ?? ''; $element[$group_name]['#open'] = FALSE; foreach ($group['tags'] as $tag_name => $tag) { Loading Loading @@ -683,7 +683,7 @@ class MetatagManager implements MetatagManagerInterface { $entity_identifier = '_none'; if ($entity) { $entity_identifier = $entity->getEntityTypeId() . ':' . ($entity->uuid() ?: $entity->id()); $entity_identifier = $entity->getEntityTypeId() . ':' . ($entity->uuid() ?? $entity->id()); } if (!isset($this->processedTokenCache[$entity_identifier])) { Loading src/Plugin/metatag/Group/GroupBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ abstract class GroupBase extends PluginBase { // @todo Should we have setProperty() methods for each of these? $this->id = $plugin_definition['id']; $this->label = $plugin_definition['label']; $this->description = $plugin_definition['description']; $this->description = $plugin_definition['description'] ?? ''; } /** Loading Loading
CHANGELOG.txt +2 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,8 @@ Metatag 8.x-1.x-dev, 2022-xx-xx metatag_get_route_entity throws notice when route is null. #3266326 by victoria-marina, Guilherme Rabelo, DamienMcKenna: Use Dependency Injection in MetatagManager. #3265567 by DamienMcKenna, Anatolij Zajika, PCate: PHP8 undefined array key "description". Metatag 8.x-1.19, 2022-01-06 Loading
src/Controller/MetatagController.php +2 −2 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ class MetatagController extends ControllerBase { ]; // Group description. $build[$group_name]['description'] = [ '#markup' => $group_definition['description'], '#markup' => $group_definition['description'] ?? '', '#prefix' => '<p>', '#suffix' => '</p>', ]; Loading Loading @@ -121,7 +121,7 @@ class MetatagController extends ControllerBase { $row = []; $row['description'] = [ 'data' => [ '#markup' => $definition['description'], '#markup' => $definition['description'] ?? '', ], 'colspan' => 8, ]; Loading
src/MetatagManager.php +3 −3 Original line number Diff line number Diff line Loading @@ -234,7 +234,7 @@ class MetatagManager implements MetatagManagerInterface { foreach ($metatag_groups as $group_name => $group_info) { $groups[$group_name]['id'] = $group_info['id']; $groups[$group_name]['label'] = $group_info['label']->render(); $groups[$group_name]['description'] = $group_info['description']; $groups[$group_name]['description'] = $group_info['description'] ?? ''; $groups[$group_name]['weight'] = $group_info['weight']; } Loading Loading @@ -331,7 +331,7 @@ class MetatagManager implements MetatagManagerInterface { // Create the fieldset. $element[$group_name]['#type'] = 'details'; $element[$group_name]['#title'] = $group['label']; $element[$group_name]['#description'] = $group['description']; $element[$group_name]['#description'] = $group['description'] ?? ''; $element[$group_name]['#open'] = FALSE; foreach ($group['tags'] as $tag_name => $tag) { Loading Loading @@ -683,7 +683,7 @@ class MetatagManager implements MetatagManagerInterface { $entity_identifier = '_none'; if ($entity) { $entity_identifier = $entity->getEntityTypeId() . ':' . ($entity->uuid() ?: $entity->id()); $entity_identifier = $entity->getEntityTypeId() . ':' . ($entity->uuid() ?? $entity->id()); } if (!isset($this->processedTokenCache[$entity_identifier])) { Loading
src/Plugin/metatag/Group/GroupBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ abstract class GroupBase extends PluginBase { // @todo Should we have setProperty() methods for each of these? $this->id = $plugin_definition['id']; $this->label = $plugin_definition['label']; $this->description = $plugin_definition['description']; $this->description = $plugin_definition['description'] ?? ''; } /** Loading