express-8.x-1.x-dev/themes/contrib/bootstrap/src/Plugin/PluginBase.php

themes/contrib/bootstrap/src/Plugin/PluginBase.php
<?php
/**
 * @file
 * Contains \Drupal\bootstrap\Plugin\PluginBase.
 */

namespace Drupal\bootstrap\Plugin;

use Drupal\bootstrap\Bootstrap;

/**
 * Base class for an update.
 *
 * @ingroup utility
 */
class PluginBase extends \Drupal\Core\Plugin\PluginBase {

  /**
   * The currently set theme object.
   *
   * @var \Drupal\bootstrap\Theme
   */
  protected $theme;

  /**
   * {@inheritdoc}
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    if (!isset($configuration['theme'])) {
      $configuration['theme'] = Bootstrap::getTheme();
    }
    $this->theme = $configuration['theme'];
    parent::__construct($configuration, $plugin_id, $plugin_definition);
  }

}

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

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