You are here

public function TokenReplacer::replaceNone in Menu Token 9.1.x

Same name and namespace in other branches
  1. 8 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;
}