You are here

function menu_item_extras_install in Menu Item Extras 8

Same name and namespace in other branches
  1. 8.2 menu_item_extras.install \menu_item_extras_install()

Implements hook_install().

File

./menu_item_extras.install, line 11
Contains install/uninstall functionality of module.

Code

function menu_item_extras_install() {
  $definition = \Drupal::service('entity_field.manager')
    ->getFieldStorageDefinitions('menu_link_content')['body'];
  \Drupal::service('field_storage_definition.listener')
    ->onFieldStorageDefinitionCreate($definition);
}