public function MenuTreeInActiveTrail::resolve in Thunder 6.2.x
Resolver.
Parameters
\Drupal\Core\Menu\MenuLinkTreeElement $element: The menu link tree element.
Return value
bool Is current element in active trail.
File
- modules/
thunder_gqls/ src/ Plugin/ GraphQL/ DataProducer/ MenuTreeInActiveTrail.php, line 36
Class
- MenuTreeInActiveTrail
- Returns if menu tree element is in active trail.
Namespace
Drupal\thunder_gqls\Plugin\GraphQL\DataProducerCode
public function resolve(MenuLinkTreeElement $element) {
return $element->inActiveTrail;
}