rocketship_core-8.x-2.0-alpha11/rocketship_core.install

rocketship_core.install
<?php

/**
 * Implements hook_install().
 */
function rocketship_core_install() {
  // Try and get the config for blazy, if present
  // set support for responsive images to true.
  // If not present, we're presumably in a config import
  // situation and it's fine.
  $blazySettings = \Drupal::configFactory()->getEditable('blazy.settings');
  if (!$blazySettings->isNew()) {
    $blazySettings->set('responsive_image', TRUE);
    $blazySettings->save();
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc