function EntityWorkspaceConflictConstraint::__construct

Attributes

#[HasNamedArguments]

File

core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php, line 20

Class

EntityWorkspaceConflictConstraint
Validation constraint for an entity being edited in multiple workspaces.

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public $message = 'The content is being edited in the @label workspace. As a result, your changes cannot be saved.', ?array $groups = NULL, mixed $payload = NULL) {
  parent::__construct($options, $groups, $payload);
}

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