EntityWorkspaceConflictConstraint.php

Same filename in other branches
  1. 9 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php
  2. 8.9.x core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php
  3. 11.x core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

File

core/modules/workspaces/src/Plugin/Validation/Constraint/EntityWorkspaceConflictConstraint.php

View source
<?php

namespace Drupal\workspaces\Plugin\Validation\Constraint;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraint as SymfonyConstraint;

/**
 * Validation constraint for an entity being edited in multiple workspaces.
 */
class EntityWorkspaceConflictConstraint extends SymfonyConstraint {
    
    /**
     * 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.';

}

Classes

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

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