You are here

public function MenuLinkDescription::resolve in GraphQL 8.4

Resolver.

Parameters

\Drupal\Core\Menu\MenuLinkInterface $link:

Return value

mixed

File

src/Plugin/GraphQL/DataProducer/Menu/MenuLink/MenuLinkDescription.php, line 36

Class

MenuLinkDescription
Returns the description of a menu link.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Menu\MenuLink

Code

public function resolve(MenuLinkInterface $link) {
  return $link
    ->getDescription();
}