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

Breadcrumb

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

function Token::setInfo

Sets metadata describing supported tokens.

Parameters

array $tokens: Token metadata that has an identical structure to the return value of hook_token_info().

See also

hook_token_info()

File

core/lib/Drupal/Core/Utility/Token.php, line 452

Class

Token
Drupal placeholder/token replacement system.

Namespace

Drupal\Core\Utility

Code

public function setInfo(array $tokens) {
    $this->tokenInfo = $tokens;
}

API Navigation

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