public function RuleListBuilder::getOperations in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Lists/RuleListBuilder.php \Drupal\rng\Lists\RuleListBuilder::getOperations()
- 3.x src/Lists/RuleListBuilder.php \Drupal\rng\Lists\RuleListBuilder::getOperations()
Provides an array of information to build a list of operation links.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.
Return value
array An associative array of operation link data for this list, 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.
Overrides EntityListBuilder::getOperations
File
- src/
Lists/ RuleListBuilder.php, line 96
Class
- RuleListBuilder
- Builds a list of rng rules.
Namespace
Drupal\rng\ListsCode
public function getOperations(EntityInterface $entity) {
$operations = parent::getOperations($entity);
foreach ($operations as &$operation) {
$operation['query'] = $this->redirectDestination
->getAsArray();
}
return $operations;
}