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

Breadcrumb

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

function Scanner::enableTokenRegistration

Enables or disables tokens registration in the token array

Parameters

bool $enable True to enable token registration, false to disable it:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Scanner.php, line 463

Class

Scanner
Base class for scanners.

Namespace

Peast\Syntax

Code

public function enableTokenRegistration($enable = true) {
    $this->registerTokens = $enable;
    return $this;
}

API Navigation

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