public function EntityOperationAlterEvent::__construct in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityOperationAlterEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityOperationAlterEvent::__construct()
EntityOperationAlterEvent constructor.
Parameters
array $operations: The array of operations being altered.
\Drupal\Core\Entity\EntityInterface $entity: The entity.
File
- modules/
core_event_dispatcher/ src/ Event/ Entity/ EntityOperationAlterEvent.php, line 37
Class
- EntityOperationAlterEvent
- Class EntityOperationAlterEvent.
Namespace
Drupal\core_event_dispatcher\Event\EntityCode
public function __construct(array &$operations, EntityInterface $entity) {
$this->operations =& $operations;
$this->entity = $entity;
}