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