Commit 7cca52bc authored by David Suissa's avatar David Suissa Committed by Jakob P
Browse files

Issue #3465604 by dydave: TypeError: method_exists(): Argument #1...

Issue #3465604 by dydave: TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given
parent f37bc920
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ class MenuLinkEntity extends MenuLinkDefault {
   * {@inheritdoc}
   */
  public function getDescription() {
    if (method_exists($this->entity, 'getDescription')) {
    if ($this->entity && method_exists($this->entity, 'getDescription')) {
      $description = $this->entity->getDescription();
    }
    return $description ?? parent::getDescription();