UnpublishWorkspaceConstraint.php in Multiversion 8
File
src/Plugin/Validation/Constraint/UnpublishWorkspaceConstraint.phpView source
<?php
namespace Drupal\multiversion\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Unpublish workspace constraint.
*
* @Constraint(
* id = "UnpublishWorkspace",
* label = @Translation("Unpublish workspace", context = "Validation"),
* )
*/
class UnpublishWorkspaceConstraint extends Constraint {
/**
+ * The default violation message.
+ *
+ * @var string
+ */
public $message = 'The default workspace cannot be unpublished or archived.';
}
Classes
Name | Description |
---|---|
UnpublishWorkspaceConstraint | Unpublish workspace constraint. |