menu_item_extras.install in Menu Item Extras 8
Same filename and directory in other branches
Contains install/uninstall functionality of module.
File
menu_item_extras.installView source
<?php
/**
* @file
* Contains install/uninstall functionality of module.
*/
/**
* Implements hook_install().
*/
function menu_item_extras_install() {
$definition = \Drupal::service('entity_field.manager')
->getFieldStorageDefinitions('menu_link_content')['body'];
\Drupal::service('field_storage_definition.listener')
->onFieldStorageDefinitionCreate($definition);
}
Functions
Name | Description |
---|---|
menu_item_extras_install | Implements hook_install(). |