FrontMatter::FRONT_MATTER_REGEXP
The regular expression used to extract the YAML front matter content.
File
-
core/
modules/ help_topics/ src/ FrontMatter.php, line 26
Class
- FrontMatter
- Extracts Front Matter from the beginning of a source.
Namespace
Drupal\help_topicsCode
const FRONT_MATTER_REGEXP = "{^(?:" . self::FRONT_MATTER_SEPARATOR . ")[\r\n|\n]*(.*?)[\r\n|\n]+(?:" . self::FRONT_MATTER_SEPARATOR . ")[\r\n|\n]*(.*)\$}s";
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.