You are here

class WorkflowsFieldContraint in Workflows Field 2.x

Same name and namespace in other branches
  1. 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\Constraint
View 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

Namesort descending Modifiers Type Description Overrides
WorkflowsFieldContraint::$insufficientPermissionsTransition public property Message displayed to users without appropriate permission for a transition.
WorkflowsFieldContraint::$message public property Message displayed during an invalid transition.