You are here

PluginBase.php in Express 8

File

themes/contrib/bootstrap/src/Plugin/PluginBase.php
View source
<?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);
  }

}

Classes

Namesort descending Description
PluginBase Base class for an update.