You are here

function media_entity_browser_update_8100 in Media Entity Browser 8

Same name and namespace in other branches
  1. 8.2 media_entity_browser.install \media_entity_browser_update_8100()

Update default configuration for new Views CSS class.

File

./media_entity_browser.install, line 23
Install file for media entity browser module.

Code

function media_entity_browser_update_8100() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('views.view.media_entity_browser');
  $config
    ->set('display.default.display_options.css_class', 'view-media-entity-browser-view');
  $config
    ->save();
}