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

Breadcrumb

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

function Node::setStartPosition

Sets the start position of the node in the source code

Parameters

Position $position Start position:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Node.php, line 142

Class

Node
Base class for all the nodes generated by Peast.

Namespace

Peast\Syntax\Node

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