/** * Constructs a new \Drupal\materialize\Plugin\SettingManager object. * * @param \Drupal\materialize\Theme $theme * The theme to use for discovery. */ public function __construct(Theme $theme) { parent::__construct($theme, 'Plugin/Setting', 'Drupal\\materialize\\Plugin\\Setting\\SettingInterface', 'Drupal\\materialize\\Annotation\\BootstrapSetting'); $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':setting', $this->getCacheTags()); }
/** * Constructs a new \Drupal\materialize\Plugin\ProcessManager object. * * @param \Drupal\materialize\Theme $theme * The theme to use for discovery. */ public function __construct(Theme $theme) { parent::__construct($theme, 'Plugin/Process', 'Drupal\\materialize\\Plugin\\Process\\ProcessInterface', 'Drupal\\materialize\\Annotation\\MaterializeProcess'); $this->setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':process', $this->getCacheTags()); }