You are here

public function TokenReplacer::replaceNone in Menu Token 8

Same name and namespace in other branches
  1. 9.1.x src/Service/TokenReplacer.php \Drupal\menu_token\Service\TokenReplacer::replaceNone()

Replacment for the none selection in the admin menu.

Parameters

string $token: Token string.

Return value

mixed array.

File

src/Service/TokenReplacer.php, line 65

Class

TokenReplacer
TokenReplacer class.

Namespace

Drupal\menu_token\Service

Code

public function replaceNone($token) {
  $replacement = [
    $token => '',
  ];
  return $replacement;
}