You are here

class EntityWorkspaceConflictConstraint in Workspace 8.2

Validation constraint for an entity being edited in multiple workspaces.

Plugin annotation


@Constraint(
  id = "EntityWorkspaceConflict",
  label = @Translation("Entity workspace conflict", context = "Validation"),
  type = {"entity"}
)

Hierarchy

Expanded class hierarchy of EntityWorkspaceConflictConstraint

File

src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php, line 16

Namespace

Drupal\workspace\Plugin\Validation\Constraint
View source
class EntityWorkspaceConflictConstraint extends Constraint {

  /**
   * The default violation message.
   *
   * @var string
   */
  public $message = 'The content is being edited in the %label workspace. As a result, your changes cannot be saved.';

}

Members

Namesort descending Modifiers Type Description Overrides
EntityWorkspaceConflictConstraint::$message public property The default violation message.