You are here

public function GroupTypeController::getOperations in Group 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/Controller/GroupTypeController.php \Drupal\group\Entity\Controller\GroupTypeController::getOperations()

Provides an array of information to build a list of operation links.

Parameters

\Drupal\group\Plugin\Group\Relation\GroupRelationInterface $plugin: The group relation plugin to build operation links for.

bool $is_installed: Whether the plugin is installed.

Return value

array An associative array of operation links for the group type's content plugin, keyed by operation name, containing the following key-value pairs:

  • title: The localized title of the operation.
  • url: An instance of \Drupal\Core\Url for the operation URL.
  • weight: The weight of this operation.
1 call to GroupTypeController::getOperations()
GroupTypeController::buildOperations in src/Entity/Controller/GroupTypeController.php
Builds operation links for the group type's content plugins.

File

src/Entity/Controller/GroupTypeController.php, line 207

Class

GroupTypeController
Provides the user permissions administration form for a specific group type.

Namespace

Drupal\group\Entity\Controller

Code

public function getOperations($plugin, $is_installed) {
  return $plugin
    ->getOperations() + $this
    ->getDefaultOperations($plugin, $is_installed);
}