You are here

public function TokenInterface::getInvalidTokensByContext in Token 8

Validate tokens in raw text based on possible contexts.

Parameters

string|string[] $value: A string with the raw text containing the raw tokens, or an array of tokens from token_scan().

string[] $valid_types: An array of token types that will be used when token replacement is performed.

Return value

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

1 method overrides TokenInterface::getInvalidTokensByContext()
Token::getInvalidTokensByContext in src/Token.php
Validate tokens in raw text based on possible contexts.

File

src/TokenInterface.php, line 72

Class

TokenInterface

Namespace

Drupal\token

Code

public function getInvalidTokensByContext($value, array $valid_types = []);