public function FrontMatterParseException::getSourceLine in Drupal 10
Same name and namespace in other branches
- 9 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;
}