Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BlockContent.php

function BlockContent::postSave

Overrides ContentEntityBase::postSave

File

core/modules/block_content/src/Entity/BlockContent.php, line 142

Class

BlockContent
Defines the content block entity class.

Namespace

Drupal\block_content\Entity

Code

public function postSave(EntityStorageInterface $storage, $update = TRUE) {
    parent::postSave($storage, $update);
    if ($this->isReusable() || isset($this->original) && $this->original
        ->isReusable()) {
        static::invalidateBlockPluginCache();
    }
}
RSS feed
Powered by Drupal