You are here

public function MenuTreeLink::resolve in GraphQL 8.4

Resolver.

Parameters

\Drupal\Core\Menu\MenuLinkTreeElement $element:

Return value

\Drupal\Core\Menu\MenuLinkInterface

File

src/Plugin/GraphQL/DataProducer/Menu/MenuTree/MenuTreeLink.php, line 36

Class

MenuTreeLink
Returns the menu link of a menu tree element.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Menu\MenuTree

Code

public function resolve(MenuLinkTreeElement $element) {
  return $element->link;
}