file PluginBase.php

Namespace

Drupal\bootstrap\Plugin
  1. <?php
  2. namespace Drupal\bootstrap\Plugin;
  3. use Drupal\Core\Plugin\PluginBase as CorePluginBase;
  4. use Drupal\bootstrap\Bootstrap;
  5. /**
  6. * Base class for an update.
  7. *
  8. * @ingroup utility
  9. */
  10. class PluginBase extends CorePluginBase {
  11. /**
  12. * The currently set theme object.
  13. *
  14. * @var \Drupal\bootstrap\Theme
  15. */
  16. protected $theme;
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  21. $this->theme = Bootstrap::getTheme(isset($configuration['theme']) ? $configuration['theme'] : NULL);
  22. parent::__construct($configuration, $plugin_id, $plugin_definition);
  23. }
  24. }

Classes

Name Description
PluginBase Base class for an update.