You are here

public function EntityHooks::onMicrositePostSave in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_microsite/src/EntityHooks.php \Drupal\entity_hierarchy_microsite\EntityHooks::onMicrositePostSave()

React to microsite being saved.

Parameters

\Drupal\entity_hierarchy_microsite\Entity\MicrositeInterface $microsite: Microsite.

bool $isUpdate: TRUE if is an update.

File

modules/entity_hierarchy_microsite/src/EntityHooks.php, line 188

Class

EntityHooks
Defines a class for entity hooks for the module.

Namespace

Drupal\entity_hierarchy_microsite

Code

public function onMicrositePostSave(MicrositeInterface $microsite, $isUpdate) {
  $this
    ->updateMenuForMicrosite($microsite);
}