protected property FieldConfigBase::$required
Flag indicating whether the field is required.
TRUE if a value for this field is required when used with this bundle, FALSE otherwise. Currently, required-ness is only enforced at the Form API level in entity edit forms, not during direct API saves.
Type: bool
File
- core/lib/Drupal/Core/Field/FieldConfigBase.php, line 103
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
protected $required = FALSE;
© 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!Field!FieldConfigBase.php/property/FieldConfigBase::required/8.1.x