You are here

protected function GroupContentMenu::getGroupContentPermissions in Group Content Menu 8

Provides permissions for the group content entity; i.e. the relationship.

Return value

array An array of group permissions, see ::getPermissions for more info.

Overrides GroupContentEnablerBase::getGroupContentPermissions

Deprecated

in Group 1.0, will be removed before Group 2.0.

See also

GroupContentEnablerInterface::getPermissions()

File

src/Plugin/GroupContentEnabler/GroupContentMenu.php, line 124

Class

GroupContentMenu
Provides a content enabler for group menus.

Namespace

Drupal\group_content_menu\Plugin\GroupContentEnabler

Code

protected function getGroupContentPermissions() {
  $plugin_id = $this
    ->getPluginId();
  $permissions["create {$plugin_id} content"] = [
    'title' => 'Relate menu',
    'description' => 'Allows you to relate a menu to the group.',
  ];
  return $permissions;
}