Loading admin_toolbar_tools/src/Plugin/Menu/MenuLinkEntity.php +3 −4 Original line number Diff line number Diff line Loading @@ -67,11 +67,10 @@ class MenuLinkEntity extends MenuLinkDefault { * {@inheritdoc} */ public function getDescription() { // @todo Remove node_type special handling. if ($this->entity instanceof EntityDescriptionInterface || $this->entity instanceof NodeTypeInterface) { return $this->entity->getDescription(); if (method_exists($this->entity, 'getDescription')) { $description = $this->entity->getDescription(); } return parent::getDescription(); return $description ?? parent::getDescription(); } /** Loading Loading
admin_toolbar_tools/src/Plugin/Menu/MenuLinkEntity.php +3 −4 Original line number Diff line number Diff line Loading @@ -67,11 +67,10 @@ class MenuLinkEntity extends MenuLinkDefault { * {@inheritdoc} */ public function getDescription() { // @todo Remove node_type special handling. if ($this->entity instanceof EntityDescriptionInterface || $this->entity instanceof NodeTypeInterface) { return $this->entity->getDescription(); if (method_exists($this->entity, 'getDescription')) { $description = $this->entity->getDescription(); } return parent::getDescription(); return $description ?? parent::getDescription(); } /** Loading