function ContextualLinkInterface::getGroup

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/ContextualLinkInterface.php \Drupal\Core\Menu\ContextualLinkInterface::getGroup()
  2. 8.9.x core/lib/Drupal/Core/Menu/ContextualLinkInterface.php \Drupal\Core\Menu\ContextualLinkInterface::getGroup()
  3. 11.x core/lib/Drupal/Core/Menu/ContextualLinkInterface.php \Drupal\Core\Menu\ContextualLinkInterface::getGroup()

Returns the group this contextual link should be rendered in.

A contextual link group is a set of contextual links that are displayed together on a certain page. For example, the 'block' group displays all links related to the block, such as the block instance edit link as well as the views edit link, if it is a view block.

Return value

string The contextual links group name.

1 method overrides ContextualLinkInterface::getGroup()
ContextualLinkDefault::getGroup in core/lib/Drupal/Core/Menu/ContextualLinkDefault.php
Returns the group this contextual link should be rendered in.

File

core/lib/Drupal/Core/Menu/ContextualLinkInterface.php, line 50

Class

ContextualLinkInterface
Defines a contextual link plugin.

Namespace

Drupal\Core\Menu

Code

public function getGroup();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.