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

Breadcrumb

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

function Parser::getRealCurrentLineNb

Returns the current line number (takes the offset into account).

@internal

4 calls to Parser::getRealCurrentLineNb()
Parser::doParse in vendor/symfony/yaml/Parser.php
Parser::getLineTag in vendor/symfony/yaml/Parser.php
Parser::getNextEmbedBlock in vendor/symfony/yaml/Parser.php
Returns the next embed block of YAML.
Parser::parseValue in vendor/symfony/yaml/Parser.php
Parses a YAML value.

File

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

Class

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

Namespace

Symfony\Component\Yaml

Code

public function getRealCurrentLineNb() : int {
    $realCurrentLineNumber = $this->currentLineNb + $this->offset;
    foreach ($this->skippedLineNumbers as $skippedLineNumber) {
        if ($skippedLineNumber > $realCurrentLineNumber) {
            break;
        }
        ++$realCurrentLineNumber;
    }
    return $realCurrentLineNumber;
}

API Navigation

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