function FrontMatter::getData
Same name in other branches
- 9 core/lib/Drupal/Component/FrontMatter/FrontMatter.php \Drupal\Component\FrontMatter\FrontMatter::getData()
- 8.9.x core/modules/help_topics/src/FrontMatter.php \Drupal\help_topics\FrontMatter::getData()
- 11.x core/lib/Drupal/Component/FrontMatter/FrontMatter.php \Drupal\Component\FrontMatter\FrontMatter::getData()
Retrieves the extracted front matter data.
Return value
array The extracted front matter data.
Throws
\Drupal\Component\FrontMatter\Exception\FrontMatterParseException
File
-
core/
lib/ Drupal/ Component/ FrontMatter/ FrontMatter.php, line 184
Class
- FrontMatter
- Component for parsing front matter from a source.
Namespace
Drupal\Component\FrontMatterCode
public function getData() : array {
return $this->parse()['data'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.