You are here

menu_item_role_access.install in Menu Item Role Access 8

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

Installation and update hooks for the menu item role access module.

File

menu_item_role_access.install
View source
<?php

/**
 * @file
 * Installation and update hooks for the menu item role access module.
 */

/**
 * Install the default configuration for this module.
 *
 * At this point no config exists for this module so we can safely install all
 * of its config.
 */
function menu_item_role_access_update_8001() {

  // Since no config yet exists for this module we can install the entire config
  // directory.
  \Drupal::service('config.installer')
    ->installDefaultConfig('module', 'menu_item_role_access');
}

/**
 * Apply the entity definition updates.
 *
 * @throws \Drupal\Core\Entity\EntityStorageException
 */
function menu_item_role_access_update_8002() {
  \Drupal::entityDefinitionUpdateManager()
    ->applyUpdates();
}

Functions

Namesort descending Description
menu_item_role_access_update_8001 Install the default configuration for this module.
menu_item_role_access_update_8002 Apply the entity definition updates.