public function EntityOperationEvent::addOperation in Hook Event Dispatcher 8
Add an operation.
Parameters
string $name: Operation name.
array $operation: Operation definition.
File
- src/
Event/ Entity/ EntityOperationEvent.php, line 77
Class
- EntityOperationEvent
- Class EntityLoadEvent.
Namespace
Drupal\hook_event_dispatcher\Event\EntityCode
public function addOperation($name, array $operation) {
$this->operations[$name] = $operation;
}