You are here

private function Parser::isBlockScalarHeader in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/symfony/yaml/Parser.php \Symfony\Component\Yaml\Parser::isBlockScalarHeader()

Tests whether or not the current line is the header of a block scalar.

Return value

bool

1 call to Parser::isBlockScalarHeader()
Parser::getNextEmbedBlock in vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php
Returns the next embed block of YAML.

File

vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php, line 736

Class

Parser
Parser parses YAML strings to convert them to PHP arrays.

Namespace

Symfony\Component\Yaml

Code

private function isBlockScalarHeader() {
  return (bool) preg_match('~' . self::BLOCK_SCALAR_HEADER_PATTERN . '$~', $this->currentLine);
}