ContextualLinkDefault::getGroup

public function ContextualLinkDefault::getGroup

public ContextualLinkDefault::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.

Overrides ContextualLinkInterface::getGroup

File

core/lib/Drupal/Core/Menu/ContextualLinkDefault.php, line 31

Class

ContextualLinkDefault
Provides a common base implementation of a contextual link.

Namespace

Drupal\Core\Menu

Code

public function getGroup() {
  return $this->pluginDefinition['group'];
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!ContextualLinkDefault.php/function/ContextualLinkDefault::getGroup/8.1.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部