private function _isActiveValidator($validator, $currentScenario)
	{
		foreach ($validator->on as $scenario) {
			if ( WorkflowScenario::match($scenario, $currentScenario)) {
				return true;
			}
		}
		return false;
	}
private function _isActiveValidator($validator, $currentScenario)
	{
		foreach ($validator->on as $scenario) {
			if ( WorkflowScenario::match($scenario, $currentScenario)) {
				return true;
			}
		}
		return false;
	}
private function _isActiveValidator ( $ validator , $ currentScenario ) { foreach ( $ validator -> on as $ scenario ) { if ( WorkflowScenario :: match ( $ scenario , $ currentScenario ) ) { return true ; } } return false ; }
Checks if a validator is active for the workflow event passed as argument.
A Validator is active if it is configured for a scenario that matches the
current scenario.

@param yii\validators\Validator $validator The validator instance to test
@param WorklflowEvent $event The workflow event for which the validator is tested
@return boolean TRUE if the validtor is active, FALSE otherwise.
Checks if a validator is active for the workflow event passed as argument . A Validator is active if it is configured for a scenario that matches the current scenario .