You are here

function rest_menu_items_update_8200 in Rest menu items 8.2

Same name and namespace in other branches
  1. 3.0.x rest_menu_items.install \rest_menu_items_update_8200()

Add our config to the default configuration for Rest Menu Items.

File

./rest_menu_items.install, line 21

Code

function rest_menu_items_update_8200() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('rest_menu_items.config');
  $config
    ->set('output_values', [
    'key',
    'title',
    'description',
    'uri',
    'alias',
    'external',
    'absolute',
    'relative',
    'existing',
    'weight',
    'expanded',
    'enabled',
    'uuid',
    'options',
  ]);
  $config
    ->save(TRUE);
}