public function TokenReplacer::replaceNone in Menu Token 9.1.x
Same name and namespace in other branches
- 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\ServiceCode
public function replaceNone($token) {
$replacement = [
$token => '',
];
return $replacement;
}