You are here

public function WebformSubmissionConditionsValidatorInterface::validateState in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionConditionsValidatorInterface.php \Drupal\webform\WebformSubmissionConditionsValidatorInterface::validateState()

Validate state with conditions.

Parameters

string $state: A state.

array $conditions: An associative array containing conditions.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

Return value

bool|null TRUE if conditions validate. NULL if conditions can't be processed.

1 method overrides WebformSubmissionConditionsValidatorInterface::validateState()
WebformSubmissionConditionsValidator::validateState in src/WebformSubmissionConditionsValidator.php
Validate state with conditions.

File

src/WebformSubmissionConditionsValidatorInterface.php, line 74

Class

WebformSubmissionConditionsValidatorInterface
Provides an interface defining a webform conditions (#states) validator.

Namespace

Drupal\webform

Code

public function validateState($state, array $conditions, WebformSubmissionInterface $webform_submission);