Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Constraint.php

Constraint::$label

The human-readable name of the constraint plugin.

Type: string|\Drupal\Core\Annotation\Translation

Related topics

Annotation for translatable text
Describes how to put translatable UI text into annotations.

File

core/lib/Drupal/Core/Validation/Annotation/Constraint.php, line 38

Class

Constraint
Defines a validation constraint annotation object.

Namespace

Drupal\Core\Validation\Annotation

Code

public $label;
RSS feed
Powered by Drupal