FrontMatterParseException::$sourceLine

Same name in other branches
  1. 9 core/lib/Drupal/Component/FrontMatter/Exception/FrontMatterParseException.php \Drupal\Component\FrontMatter\Exception\FrontMatterParseException::sourceLine
  2. 11.x core/lib/Drupal/Component/FrontMatter/Exception/FrontMatterParseException.php \Drupal\Component\FrontMatter\Exception\FrontMatterParseException::sourceLine

The line number of 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.

Type: int

File

core/lib/Drupal/Component/FrontMatter/Exception/FrontMatterParseException.php, line 22

Class

FrontMatterParseException
Defines a class for front matter parsing exceptions.

Namespace

Drupal\Component\FrontMatter\Exception

Code

protected $sourceLine;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.