Overrides EntityBase::postSave
public function postSave(EntityStorageInterface $storage, $update = TRUE) { // Reset the render cache for the target entity type. parent::postSave($storage, $update); if (\Drupal::entityTypeManager()->hasHandler($this->targetEntityType, 'view_builder')) { \Drupal::entityTypeManager()->getViewBuilder($this->targetEntityType) ->resetCache(); } }