public function ProviderManager::processDefinition in Express 8
Performs extra processing on plugin definitions.
By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method.
Overrides DefaultPluginManager::processDefinition
File
- themes/
contrib/ bootstrap/ src/ Plugin/ ProviderManager.php, line 39 - Contains \Drupal\bootstrap\Plugin\ProviderManager.
Class
- ProviderManager
- Manages discovery and instantiation of Bootstrap CDN providers.
Namespace
Drupal\bootstrap\PluginCode
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);
}