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