class WorkflowsFieldContraint in Workflows Field 2.x
Same name and namespace in other branches
- 8 src/Plugin/Validation/Constraint/WorkflowsFieldContraint.php \Drupal\workflows_field\Plugin\Validation\Constraint\WorkflowsFieldContraint
Validation constraint for the workflows field.
Plugin annotation
@Constraint(
id = "WorkflowsFieldConstraint",
label = @Translation("WorkflowsFieldConstraint provider constraint", context = "Validation"),
)
Hierarchy
- class \Drupal\workflows_field\Plugin\Validation\Constraint\WorkflowsFieldContraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of WorkflowsFieldContraint
File
- src/
Plugin/ Validation/ Constraint/ WorkflowsFieldContraint.php, line 15
Namespace
Drupal\workflows_field\Plugin\Validation\ConstraintView source
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.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WorkflowsFieldContraint:: |
public | property | Message displayed to users without appropriate permission for a transition. | |
WorkflowsFieldContraint:: |
public | property | Message displayed during an invalid transition. |