/** * {@inheritdoc} */ public function isApplicable(ContextInterface $context, array $processorAttributes) { $result = self::ABSTAIN; $attrName = 'requestType'; if (!empty($processorAttributes[$attrName]) && $context->has($attrName)) { if (!$this->isMatch($processorAttributes[$attrName], $context->get($attrName))) { $result = self::NOT_APPLICABLE; } } return $result; }