interface DesignTokenPluginManagerInterface
Interface for design token manager.
@internal This API is experimental.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface extends \Drupal\Component\Plugin\Discovery\DiscoveryInterface, \Drupal\Component\Plugin\Factory\FactoryInterface, \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Core\Theme\DesignToken\DesignTokenPluginManagerInterface extends \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface extends \Drupal\Component\Plugin\Discovery\DiscoveryInterface, \Drupal\Component\Plugin\Factory\FactoryInterface, \Drupal\Component\Plugin\Mapper\MapperInterface
Expanded class hierarchy of DesignTokenPluginManagerInterface
All classes that implement DesignTokenPluginManagerInterface
2 files declare their use of DesignTokenPluginManagerInterface
- DesignTokenPluginManagerKernelTest.php in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ DesignToken/ DesignTokenPluginManagerKernelTest.php - DesignTokenPluginManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ DesignTokenPluginManagerTest.php
File
-
core/
lib/ Drupal/ Core/ Theme/ DesignToken/ DesignTokenPluginManagerInterface.php, line 15
Namespace
Drupal\Core\Theme\DesignTokenView source
interface DesignTokenPluginManagerInterface extends PluginManagerInterface {
/**
* {@inheritdoc}
*
* @return \Drupal\Core\Theme\DesignToken\DesignToken|null
* The design token. NULL if not found.
*/
public function getDefinition($plugin_id, $exception_on_invalid = TRUE);
/**
* {@inheritdoc}
*
* @return \Drupal\Core\Theme\DesignToken\DesignToken[]
* The design tokens.
*/
public function getDefinitions();
/**
* {@inheritdoc}
*
* @return \Drupal\Core\Theme\DesignToken\DesignToken[]
* The design tokens.
*/
public function findDefinitions() : array;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.