interface RequiredFieldStorageDefinitionInterface in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.php \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface
Defines an interface for required field storage definitions.
Hierarchy
- interface \Drupal\Core\Field\RequiredFieldStorageDefinitionInterface
Expanded class hierarchy of RequiredFieldStorageDefinitionInterface
All classes that implement RequiredFieldStorageDefinitionInterface
1 file declares its use of RequiredFieldStorageDefinitionInterface
- CommentStorageSchema.php in core/
modules/ comment/ src/ CommentStorageSchema.php
File
- core/
lib/ Drupal/ Core/ Field/ RequiredFieldStorageDefinitionInterface.php, line 8
Namespace
Drupal\Core\FieldView source
interface RequiredFieldStorageDefinitionInterface {
/**
* 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 bool
* TRUE if the field storage is required, FALSE otherwise.
*/
public function isStorageRequired();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequiredFieldStorageDefinitionInterface:: |
public | function | Returns whether the field storage is required. | 1 |