public function EntityHooks::onMicrositePostSave in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x 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 174
Class
- EntityHooks
- Defines a class for entity hooks for the module.
Namespace
Drupal\entity_hierarchy_micrositeCode
public function onMicrositePostSave(MicrositeInterface $microsite, $isUpdate) {
$this
->updateMenuForMicrosite($microsite);
}