You are here

public function WebformImageSelectImages::postSave in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_image_select/src/Entity/WebformImageSelectImages.php \Drupal\webform_image_select\Entity\WebformImageSelectImages::postSave()

Acts on a saved entity before the insert or update hook is invoked.

Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed.

Parameters

\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 EntityBase::postSave

File

modules/webform_image_select/src/Entity/WebformImageSelectImages.php, line 136

Class

WebformImageSelectImages
Defines the webform image select images entity.

Namespace

Drupal\webform_image_select\Entity

Code

public function postSave(EntityStorageInterface $storage, $update = TRUE) {
  parent::postSave($storage, $update);

  // Clear cached properties.
  $this->imagesDecoded = NULL;
}