function FrontMatterParseException::getSourceLine
Same name in other branches
- 10 core/lib/Drupal/Component/FrontMatter/Exception/FrontMatterParseException.php \Drupal\Component\FrontMatter\Exception\FrontMatterParseException::getSourceLine()
- 11.x core/lib/Drupal/Component/FrontMatter/Exception/FrontMatterParseException.php \Drupal\Component\FrontMatter\Exception\FrontMatterParseException::getSourceLine()
Retrieves the line number where the parse error occurred.
This line number is in relation to where the parse error occurred in the source front matter content. It is different from \Exception::getLine() which is populated with the line number of where this exception was thrown in PHP.
Return value
int The source line number.
File
-
core/
lib/ Drupal/ Component/ FrontMatter/ Exception/ FrontMatterParseException.php, line 61
Class
- FrontMatterParseException
- Defines a class for front matter parsing exceptions.
Namespace
Drupal\Component\FrontMatter\ExceptionCode
public function getSourceLine() : int {
return $this->sourceLine;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.