ef3107fd4c52a554ed007f8540c49ec64593d4bb
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / PluginBase.php
1 <?php
2 /**
3  * @file
4  * Contains \Drupal\bootstrap\Plugin\PluginBase.
5  */
6
7 namespace Drupal\bootstrap\Plugin;
8
9 use Drupal\bootstrap\Bootstrap;
10
11 /**
12  * Base class for an update.
13  *
14  * @ingroup utility
15  */
16 class PluginBase extends \Drupal\Core\Plugin\PluginBase {
17
18   /**
19    * The currently set theme object.
20    *
21    * @var \Drupal\bootstrap\Theme
22    */
23   protected $theme;
24
25   /**
26    * {@inheritdoc}
27    */
28   public function __construct(array $configuration, $plugin_id, $plugin_definition) {
29     if (!isset($configuration['theme'])) {
30       $configuration['theme'] = Bootstrap::getTheme();
31     }
32     $this->theme = $configuration['theme'];
33     parent::__construct($configuration, $plugin_id, $plugin_definition);
34   }
35
36 }