private function 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 drupal/core/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php
Returns the next embed block of YAML.
Parser::isNextLineUnIndentedCollection in drupal/core/vendor/symfony/yaml/Symfony/Component/Yaml/Parser.php
Returns true if the next line starts unindented collection

File

drupal/core/vendor/symfony/yaml/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, '- ');
}