You are here

function TokenInterface::getInvalidTokens in Token 8

Validate an array of tokens based on their token type.

Parameters

string $type: The type of tokens to validate (e.g. 'node', etc.)

string[] $tokens: A keyed array of tokens, and their original raw form in the source text.

Return value

string[] An array with the invalid tokens in their original raw forms.

1 method overrides TokenInterface::getInvalidTokens()
Token::getInvalidTokens in src/Token.php
Validate an array of tokens based on their token type.

File

src/TokenInterface.php, line 57

Class

TokenInterface

Namespace

Drupal\token

Code

function getInvalidTokens($type, $tokens);