You are here

public function MenuLinkExpanded::resolve in GraphQL 8.4

Resolver.

Parameters

\Drupal\Core\Menu\MenuLinkInterface $link:

Return value

bool

File

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

Class

MenuLinkExpanded
Returns whether a menu link is expanded.

Namespace

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

Code

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