public function FrontMatter::getData in Drupal 9
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'];
}