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

Breadcrumb

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

function Token::jsonSerialize

Returns a serializable version of the node

Return value

array

File

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

Class

Token
A token emitted by the tokenizer.

Namespace

Peast\Syntax

Code

public function jsonSerialize() {
    return array(
        "type" => $this->type,
        "value" => $this->value,
        "location" => $this->location,
    );
}

API Navigation

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