You are here

class UnpublishWorkspaceConstraint in Multiversion 8

Unpublish workspace constraint.

Plugin annotation


@Constraint(
  id = "UnpublishWorkspace",
  label = @Translation("Unpublish workspace", context = "Validation"),
)

Hierarchy

Expanded class hierarchy of UnpublishWorkspaceConstraint

File

src/Plugin/Validation/Constraint/UnpublishWorkspaceConstraint.php, line 15

Namespace

Drupal\multiversion\Plugin\Validation\Constraint
View source
class UnpublishWorkspaceConstraint extends Constraint {

  /**
    +   * The default violation message.
    +   *
    +   * @var string
    +   */
  public $message = 'The default workspace cannot be unpublished or archived.';

}

Members

Namesort descending Modifiers Type Description Overrides
UnpublishWorkspaceConstraint::$message public property + * The default violation message. + * + * +