3 namespace Drupal\bootstrap\Plugin;
5 use Drupal\Core\Plugin\PluginBase as CorePluginBase;
6 use Drupal\bootstrap\Bootstrap;
9 * Base class for an update.
13 class PluginBase extends CorePluginBase {
16 * The currently set theme object.
18 * @var \Drupal\bootstrap\Theme
25 public function __construct(array $configuration, $plugin_id, $plugin_definition) {
26 if (!isset($configuration['theme'])) {
27 $configuration['theme'] = Bootstrap::getTheme();
29 $this->theme = $configuration['theme'];
30 parent::__construct($configuration, $plugin_id, $plugin_definition);