function DeletedWorkspaceConstraintValidator::__construct

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraintValidator::__construct()
  2. 8.9.x core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraintValidator::__construct()
  3. 10 core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php \Drupal\workspaces\Plugin\Validation\Constraint\DeletedWorkspaceConstraintValidator::__construct()

Creates a new DeletedWorkspaceConstraintValidator instance.

Parameters

\Drupal\Core\State\StateInterface $state: The state service.

File

core/modules/workspaces/src/Plugin/Validation/Constraint/DeletedWorkspaceConstraintValidator.php, line 29

Class

DeletedWorkspaceConstraintValidator
Checks if data still exists for a deleted workspace ID.

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

Code

public function __construct(StateInterface $state) {
    $this->state = $state;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.