You are here

public function LinkedFieldManager::replaceToken in Linked Field 8

Replace token in text.

Parameters

string $text: The text with tokens included.

array $data: Additional context information.

array $options: An options array for the token replacement.

Return value

string String with tokens.

Overrides LinkedFieldManagerInterface::replaceToken

File

src/LinkedFieldManager.php, line 211

Class

LinkedFieldManager
Provides helper methods for client related functionalities.

Namespace

Drupal\linked_field

Code

public function replaceToken($text, array $data = [], array $options = []) {
  return $this->token
    ->replace($text, $data, $options);
}