You are here

private function BrowseTokens::contribReplace in Views Token Argument 8

Same name and namespace in other branches
  1. 2.0.x src/BrowseTokens.php \Drupal\views_argument_token\BrowseTokens::contribReplace()

Replace tokens with their values using the contributed token module.

@todo: update with latest info from token modules.

1 call to BrowseTokens::contribReplace()
BrowseTokens::tokenReplace in src/BrowseTokens.php
Gatekeeper function to direct to either the core or contributed Token.

File

src/BrowseTokens.php, line 117

Class

BrowseTokens
Token handling service. Uses core token service or contributed Token.

Namespace

Drupal\views_argument_token

Code

private function contribReplace($string, $data, $settings = array()) {

  // @TODO: Add contrib Token integration when it is ready.
  // For now, just redirect to the core replacement to avoid breaking sites
  // where Token is installed.
  return $this
    ->coreReplace($string, $data, $settings);
}