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