class PluginBase

Base class for an update.

Hierarchy

  • class \Drupal\bootstrap\Plugin\PluginBase extends \Drupal\Core\Plugin\PluginBase

Expanded class hierarchy of PluginBase

Related topics

10 files declare their use of PluginBase

Namespace

Drupal\bootstrap\Plugin
Source
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);
  }

}

Members

Contains filters are case sensitive
Name Modifiers Type Description
PluginBase::$theme protected property The currently set theme object.
PluginBase::__construct public function