interface DtcgInterface
Interface for DTCG tokens and groups.
DTCG: Design Tokens Community Group.
Hierarchy
- interface \Drupal\Core\Theme\DesignToken\DtcgInterface
Expanded class hierarchy of DtcgInterface
All classes that implement DtcgInterface
See also
1 file declares its use of DtcgInterface
- DesignTokenPluginManagerTest.php in core/
tests/ Drupal/ Tests/ Core/ Theme/ DesignToken/ DesignTokenPluginManagerTest.php
File
-
core/
lib/ Drupal/ Core/ Theme/ DesignToken/ DtcgInterface.php, line 14
Namespace
Drupal\Core\Theme\DesignTokenView source
interface DtcgInterface {
/**
* The type of the token or group.
*
* @return string|null
* The type of the token or group. NULL if undefined.
*/
public function getType() : ?string;
/**
* The path of the token or group.
*
* @return string
* The path of the token or group.
*/
public function getPath() : string;
/**
* Exports to the DTCG representation.
*
* @return array
* The DTCG representation.
*/
public function toDtcg() : array;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.