You are here

function menu_item_role_access_update_8002 in Menu Item Role Access 8.2

Same name and namespace in other branches
  1. 8 menu_item_role_access.install \menu_item_role_access_update_8002()

Apply the entity definition updates.

Throws

\Drupal\Core\Entity\EntityStorageException

File

./menu_item_role_access.install, line 26
Installation and update hooks for the menu item role access module.

Code

function menu_item_role_access_update_8002() {
  $config = \Drupal::configFactory()
    ->getEditable('menu_item_role_access.config');
  $config
    ->set('overwrite_internal_link_target_access', $config
    ->get('overwrite_internal_link_target_access') ?? FALSE)
    ->save();
  $config
    ->set('inherit_parent_access', $config
    ->get('inherit_parent_access') ?? FALSE)
    ->save();
}