private function Parser::isStringUnIndentedCollectionItem

Returns true if the string is unindented collection item

Return value

Boolean Returns true if the string is unindented 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 615

Class

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

Namespace

Symfony\Component\Yaml

Code

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