Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface::isStorageRequired()
  2. 9 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface::isStorageRequired()

Returns whether the field storage is required.

If a field storage is required, NOT NULL constraints will be added automatically for the required properties of a field type.

Return value

bool TRUE if the field storage is required, FALSE otherwise.

1 method overrides RequiredFieldStorageDefinitionInterface::isStorageRequired()
BaseFieldDefinition::isStorageRequired in core/lib/Drupal/Core/Field/BaseFieldDefinition.php
Returns whether the field storage is required.

File

core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php, line 19

Class

RequiredFieldStorageDefinitionInterface
Defines an interface for required field storage definitions.

Namespace

Drupal\Core\Field

Code

public function isStorageRequired();