function DeletedWorkspaceConstraintValidator::create

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

Overrides ContainerInjectionInterface::create

File

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

Class

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

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('workspaces.association'));
}

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