class UnpublishWorkspaceConstraint in Multiversion 8
Unpublish workspace constraint.
Plugin annotation
@Constraint(
id = "UnpublishWorkspace",
label = @Translation("Unpublish workspace", context = "Validation"),
)
Hierarchy
- class \Drupal\multiversion\Plugin\Validation\Constraint\UnpublishWorkspaceConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of UnpublishWorkspaceConstraint
File
- src/
Plugin/ Validation/ Constraint/ UnpublishWorkspaceConstraint.php, line 15
Namespace
Drupal\multiversion\Plugin\Validation\ConstraintView source
class UnpublishWorkspaceConstraint extends Constraint {
/**
+ * The default violation message.
+ *
+ * @var string
+ */
public $message = 'The default workspace cannot be unpublished or archived.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UnpublishWorkspaceConstraint:: |
public | property | + * The default violation message. + * + * + |