Converts AccessCheckInterface constants to a string.
mixed $constant: The access constant which is tested, so either AccessCheckInterface::ALLOW, AccessCheckInterface::DENY OR AccessCheckInterface::KILL.
string The corresponding string used in route requirements, so 'TRUE', 'FALSE' or 'NULL'.
protected static function convertAccessCheckInterfaceToString($constant) {
if ($constant === AccessCheckInterface::ALLOW) {
return 'TRUE';
}
if ($constant === AccessCheckInterface::DENY) {
return 'NULL';
}
if ($constant === AccessCheckInterface::KILL) {
return 'FALSE';
}
}