PluginBase.php in Express 8
Contains \Drupal\bootstrap\Plugin\PluginBase.
Namespace
Drupal\bootstrap\PluginFile
themes/contrib/bootstrap/src/Plugin/PluginBase.phpView 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
Name | Description |
---|---|
PluginBase | Base class for an update. |