function RdfMapping::postSave

Same name and namespace in other branches
  1. 9 core/modules/rdf/src/Entity/RdfMapping.php \Drupal\rdf\Entity\RdfMapping::postSave()

Overrides EntityBase::postSave

File

core/modules/rdf/src/Entity/RdfMapping.php, line 159

Class

RdfMapping
Config entity for working with RDF mappings.

Namespace

Drupal\rdf\Entity

Code

public function postSave(EntityStorageInterface $storage, $update = TRUE) {
    parent::postSave($storage, $update);
    if (\Drupal::entityTypeManager()->hasHandler($this->targetEntityType, 'view_builder')) {
        \Drupal::entityTypeManager()->getViewBuilder($this->targetEntityType)
            ->resetCache();
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.