constant HexColorInterface::HEXADECIMAL_COLOR_REGEX in Color API 8
Regex used to validate hexadecimal color strings.
File
- src/
Plugin/ DataType/ HexColorInterface.php, line 17
Class
- HexColorInterface
- Interface for the Typed Data Hexadecimal Color Simple Data type.
Namespace
Drupal\colorapi\Plugin\DataTypeCode
const HEXADECIMAL_COLOR_REGEX = '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/';