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

Breadcrumb

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

function NodeAbstract::getStartLine

Gets line the node started in.

Requires the 'startLine' attribute to be enabled in the lexer (enabled by default).

@phpstan-return -1|positive-int

Return value

int Start line (or -1 if not available)

Overrides Node::getStartLine

File

vendor/nikic/php-parser/lib/PhpParser/NodeAbstract.php, line 36

Class

NodeAbstract

Namespace

PhpParser

Code

public function getStartLine() : int {
    return $this->attributes['startLine'] ?? -1;
}

API Navigation

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