public property Constraint::$type
An array of DataType plugin IDs for which this constraint applies. Valid values are any types registered by the typed data API, or an array of multiple type names. For supporting all types, FALSE may be specified. The key defaults to an empty array, which indicates no types are supported.
Type: string|string[]|false
See also
\Drupal\Core\TypedData\Annotation\DataType
File
- core/lib/Drupal/Core/Validation/Annotation/Constraint.php, line 50
Class
- Constraint
- Defines a validation constraint annotation object.
Namespace
Drupal\Core\Validation\AnnotationCode
public $type = [];
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Validation!Annotation!Constraint.php/property/Constraint::type/8.1.x