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

Breadcrumb

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

function Position::jsonSerialize

Returns a serializable version of the object

Return value

array

File

vendor/mck89/peast/lib/Peast/Syntax/Position.php, line 89

Class

Position
This class represents the position in the source code.

Namespace

Peast\Syntax

Code

public function jsonSerialize() {
    return array(
        "line" => $this->getLine(),
        "column" => $this->getColumn(),
        "index" => $this->getIndex(),
    );
}

API Navigation

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