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

Breadcrumb

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

function Token::setStartPosition

Sets the start position of the token in the source code

Parameters

Position $position Start position:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Token.php, line 165

Class

Token
A token emitted by the tokenizer.

Namespace

Peast\Syntax

Code

public function setStartPosition(Position $position) {
    $this->location->start = $position;
    return $this;
}

API Navigation

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