context_ui.module in Context 8.4
Same filename and directory in other branches
Defines Drupal hooks for context_ui module.
File
modules/context_ui/context_ui.moduleView source
<?php
/**
* @file
* Defines Drupal hooks for context_ui module.
*/
/**
* Implements hook_entity_insert().
*/
function context_ui_context_insert($entity) {
Drupal::service('context_ui.menu_builder')
->addSubMenuItem($entity);
}
/**
* Implements hook_entity_update().
*/
function context_ui_context_update($entity) {
Drupal::service('context_ui.menu_builder')
->updateSubMenuItem($entity);
}
/**
* Implements hook_entity_delete().
*/
function context_ui_context_delete($entity) {
Drupal::service('context_ui.menu_builder')
->deleteSubMenuItem($entity);
}
Functions
Name | Description |
---|---|
context_ui_context_delete | Implements hook_entity_delete(). |
context_ui_context_insert | Implements hook_entity_insert(). |
context_ui_context_update | Implements hook_entity_update(). |