You are here

private function Parser::isStringUnIndentedCollectionItem in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Symfony/Component/Yaml/Parser.php \Symfony\Component\Yaml\Parser::isStringUnIndentedCollectionItem()
  2. 7.2 vendor/Symfony/Component/Yaml/Parser.php \Symfony\Component\Yaml\Parser::isStringUnIndentedCollectionItem()

Returns true if the string is un-indented collection item

Return value

Boolean Returns true if the string is un-indented collection item, false otherwise

2 calls to Parser::isStringUnIndentedCollectionItem()
Parser::getNextEmbedBlock in vendor/Symfony/Component/Yaml/Parser.php
Returns the next embed block of YAML.
Parser::isNextLineUnIndentedCollection in vendor/Symfony/Component/Yaml/Parser.php
Returns true if the next line starts unindented collection

File

vendor/Symfony/Component/Yaml/Parser.php, line 625

Class

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

Namespace

Symfony\Component\Yaml

Code

private function isStringUnIndentedCollectionItem() {
  return 0 === strpos($this->currentLine, '- ');
}