Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Parser.php

function Parser::isStringUnIndentedCollectionItem

2 calls to Parser::isStringUnIndentedCollectionItem()
Parser::getNextEmbedBlock in vendor/symfony/yaml/Parser.php
Returns the next embed block of YAML.
Parser::isNextLineUnIndentedCollection in vendor/symfony/yaml/Parser.php

File

vendor/symfony/yaml/Parser.php, line 1037

Class

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

Namespace

Symfony\Component\Yaml

Code

private function isStringUnIndentedCollectionItem() : bool {
    return '-' === rtrim($this->currentLine) || str_starts_with($this->currentLine, '- ');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal