You are here

menu_item_extras.install in Menu Item Extras 8

Same filename and directory in other branches
  1. 8.2 menu_item_extras.install

Contains install/uninstall functionality of module.

File

menu_item_extras.install
View 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

Namesort descending Description
menu_item_extras_install Implements hook_install().