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

Breadcrumb

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

function CommentsRegistry::onScannerFreezeState

Listener called every time the scanner compose the array that represents its current state

Parameters

array $state State:

Return value

void

File

vendor/mck89/peast/lib/Peast/Syntax/CommentsRegistry.php, line 80

Class

CommentsRegistry
Comments registry class. Internal class used to manage comments

Namespace

Peast\Syntax

Code

public function onScannerFreezeState(&$state) {
    
    //Register the current last token index
    $state["commentsLastTokenIndex"] = $this->lastTokenIndex;
}

API Navigation

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