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

Breadcrumb

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

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 107

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

protected $required = FALSE;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal