hospital_management-8.x-1.x-dev/web/themes/bootstrap/src/Plugin/PluginBase.php

web/themes/bootstrap/src/Plugin/PluginBase.php
<?php

namespace Drupal\bootstrap\Plugin;

use Drupal\Core\Plugin\PluginBase as CorePluginBase;
use Drupal\bootstrap\Bootstrap;

/**
 * Base class for an update.
 *
 * @ingroup utility
 */
class PluginBase extends CorePluginBase {

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

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

}

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

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