You are here

function opigno_calendar_update_8005 in Opigno calendar 8

Hide tabs on calendar month page.

File

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

Code

function opigno_calendar_update_8005() {
  $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);
  }
}