public function CookieCondition::isMatched in Access Filter 8
Checks the current access is matched to the condition.
Parameters
\Symfony\Component\HttpFoundation\Request $request: A request instance.
Return value
bool Boolean TRUE if condition is matched or FALSE otherwise.
Overrides ConditionInterface::isMatched
File
- src/
Plugin/ AccessFilter/ Condition/ CookieCondition.php, line 24
Class
- CookieCondition
- Filter condition using cookie value.
Namespace
Drupal\access_filter\Plugin\AccessFilter\ConditionCode
public function isMatched(Request $request) {
return $this
->isMatchedWithArray($_COOKIE);
}