public function EntityQueue::preSave in Entityqueue 8
Acts on an entity before the presave hook is invoked.
Used before the entity is saved and before invoking the presave hook.
Ensure that config entities which are bundles of other entities cannot have their ID changed.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
Throws
\Drupal\Core\Config\ConfigNameException Thrown when attempting to rename a bundle entity.
Overrides ConfigEntityBundleBase::preSave
File
- src/
Entity/ EntityQueue.php, line 247
Class
- EntityQueue
- Defines the EntityQueue entity class.
Namespace
Drupal\entityqueue\EntityCode
public function preSave(EntityStorageInterface $storage) {
parent::preSave($storage);
$this
->getHandlerPlugin()
->onQueuePreSave($this, $storage);
}