You are here

public function MenuLinkLabel::resolve in GraphQL 8.4

Resolver.

Parameters

\Drupal\Core\Menu\MenuLinkInterface $link:

Return value

mixed

File

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

Class

MenuLinkLabel
Returns the label of a menu link.

Namespace

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

Code

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