public function WebformSubmissionConditionsValidatorInterface::validateConditions in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformSubmissionConditionsValidatorInterface.php \Drupal\webform\WebformSubmissionConditionsValidatorInterface::validateConditions()
Validate #state conditions.
Parameters
array $conditions: An associative array containing conditions.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Return value
bool|null TRUE if the conditions validate. NULL if the conditions can't be processed. NULL is returned when there is an invalid selector or a missing element in the conditions.
See also
\Drupal\Core\Form\FormHelper::processStates
1 method overrides WebformSubmissionConditionsValidatorInterface::validateConditions()
- WebformSubmissionConditionsValidator::validateConditions in src/
WebformSubmissionConditionsValidator.php - Validate #state conditions.
File
- src/
WebformSubmissionConditionsValidatorInterface.php, line 91
Class
- WebformSubmissionConditionsValidatorInterface
- Provides an interface defining a webform conditions (#states) validator.
Namespace
Drupal\webformCode
public function validateConditions(array $conditions, WebformSubmissionInterface $webform_submission);