function DesignTokenValuePluginCollection::getConfiguration
Same name and namespace in other branches
- main core/lib/Drupal/Core/Theme/DesignToken/DesignTokenValuePluginCollection.php \Drupal\Core\Theme\DesignToken\DesignTokenValuePluginCollection::getConfiguration()
Gets the current configuration of all plugins in this collection.
Return value
array An array of up-to-date plugin configuration.
Overrides LazyPluginCollection::getConfiguration
File
-
core/
lib/ Drupal/ Core/ Theme/ DesignToken/ DesignTokenValuePluginCollection.php, line 61
Class
- DesignTokenValuePluginCollection
- A collection of design token value plugins.
Namespace
Drupal\Core\Theme\DesignTokenCode
public function getConfiguration() : array {
$preparedConfigurations = [];
foreach ($this->configurations as $instanceId => $configuration) {
$instance = $this->get($instanceId);
$preparedConfigurations[DesignTokenEntity::getConfigScopeName($instanceId)] = $instance->toDtcg();
}
return $preparedConfigurations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.