You are here

public function GroupContentMenuType::postCreate in Group Content Menu 8

Acts on a created entity before hooks are invoked.

Used after the entity is created, but before saving the entity and before any of the presave hooks are invoked.

See the Entity CRUD topic for more information.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.

Overrides EntityBase::postCreate

See also

\Drupal\Core\Entity\EntityInterface::create()

File

src/Entity/GroupContentMenuType.php, line 65

Class

GroupContentMenuType
Defines the Group content menu type configuration entity.

Namespace

Drupal\group_content_menu\Entity

Code

public function postCreate(EntityStorageInterface $storage) {
  parent::postCreate($storage);
  static::clearCacheOnSave();
}