public function KeyProviderBase::postSave in Key 8
Allows a key provider to perform actions after a key entity is saved.
Parameters
\Drupal\key\KeyInterface $key: The key entity that was saved.
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
bool $update: TRUE if the entity has been updated, or FALSE if it has been inserted.
Overrides KeyProviderInterface::postSave
File
- src/
Plugin/ KeyProviderBase.php, line 76
Class
- KeyProviderBase
- Defines a base class for Key Provider plugins.
Namespace
Drupal\key\PluginCode
public function postSave(KeyInterface $key, EntityStorageInterface $storage, $update = TRUE) {
// Post-save actions are optional.
}