You are here

constant GranularityStringInterface::GRANULARITY_STRING_PATTERN in Duration Field 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/DataType/GranularityStringInterface.php \Drupal\duration_field\Plugin\DataType\GranularityStringInterface::GRANULARITY_STRING_PATTERN

The Regex used to validate a granularity string.

File

src/Plugin/DataType/GranularityStringInterface.php, line 30

Class

GranularityStringInterface
Interface for Granularity String typed data objects.

Namespace

Drupal\duration_field\Plugin\DataType

Code

const GRANULARITY_STRING_PATTERN = '/^([yYmMdYhHiIsS]:)?([yYmMdYhHiIsS]:)?([yYmMdYhHiIsS]:)?([yYmMdYhHiIsS]:)?([yYmMdYhHiIsS]:)?([yYmMdYhHiIsS]:)?$/';