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

Breadcrumb

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

function Token::getEndLine

Get 1-based end line number of the token.

File

vendor/nikic/php-parser/lib/PhpParser/Token.php, line 15

Class

Token
A PHP token. On PHP 8.0 this extends from PhpToken.

Namespace

PhpParser

Code

public function getEndLine() : int {
    return $this->line + \substr_count($this->text, "\n");
}

API Navigation

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