WorkflowsFieldContraint.php in Workflows Field 2.x
Same filename and directory in other branches
File
src/Plugin/Validation/Constraint/WorkflowsFieldContraint.phpView source
<?php
namespace Drupal\workflows_field\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Validation constraint for the workflows field.
*
* @Constraint(
* id = "WorkflowsFieldConstraint",
* label = @Translation("WorkflowsFieldConstraint provider constraint", context = "Validation"),
* )
*/
class WorkflowsFieldContraint extends Constraint {
/**
* Message displayed during an invalid transition.
*
* @var string
*/
public $message = 'No transition exists to move from %previous_state to %state.';
/**
* Message displayed to users without appropriate permission for a transition.
*
* @var string
*/
public $insufficientPermissionsTransition = 'You do not have sufficient permissions to use the %transition transition.';
}
Classes
Name | Description |
---|---|
WorkflowsFieldContraint | Validation constraint for the workflows field. |