protected function TransactionTypeStorage::doPostSave in Transaction 8
Performs post save entity processing.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The saved entity.
bool $update: Specifies whether the entity is being updated or created.
Overrides EntityStorageBase::doPostSave
File
- src/
TransactionTypeStorage.php, line 113
Class
- TransactionTypeStorage
- Transaction type storage handler.
Namespace
Drupal\transactionCode
protected function doPostSave(EntityInterface $entity, $update) {
parent::doPostSave($entity, $update);
// Update local task in the target entity type.
if ($this
->updateLocalTask($entity, $entity
->getOption('local_task', FALSE))) {
$this
->clearLocalTaskCache();
}
}