setCacheBackend(\Drupal::cache('discovery'), 'theme:' . $theme->getName() . ':provider', $this->getCacheTags()); } /** * {@inheritdoc} */ public function processDefinition(&$definition, $plugin_id) { parent::processDefinition($definition, $plugin_id); /** @var ProviderInterface $provider */ $provider = new $definition['class'](['theme' => $this->theme], $plugin_id, $definition); $provider->processDefinition($definition, $plugin_id); } }