protected ConfigEntityStorage::invokeHook($hook, EntityInterface $entity)
Invokes a hook on behalf of the entity.
Parameters
$hook: One of 'presave', 'insert', 'update', 'predelete', or 'delete'.
$entity: The entity object.
Overrides EntityStorageBase::invokeHook
File
- core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 367
Class
- ConfigEntityStorage
- Defines the storage class for configuration entities.
Namespace
Drupal\Core\Config\Entity
Code
protected function invokeHook($hook, EntityInterface $entity) {
// Invoke the hook.
$this->moduleHandler->invokeAll($this->entityTypeId . '_' . $hook, array($entity));
// Invoke the respective entity-level hook.
$this->moduleHandler->invokeAll('entity_' . $hook, array($entity, $this->entityTypeId));
}
Please login to continue.