You are here

function opigno_calendar_update_8004 in Opigno calendar 8

Show tabs on calendar page.

File

./opigno_calendar.install, line 97
Install, update and uninstall functions for the Opigno Calendar module.

Code

function opigno_calendar_update_8004() {
  $theme_handler = Drupal::service('theme_handler');
  $info = $theme_handler
    ->listInfo();
  if (isset($info['platon'])) {
    $config_path = drupal_get_path('theme', 'platon') . '/config/optional';
    $storage = new FileStorage($config_path);
    $config_storage = \Drupal::service('config.storage');
    $data = $storage
      ->read('block.block.tabs');
    $config_storage
      ->write('block.block.tabs', $data);
  }
}