RequiredFieldStorageDefinitionInterface.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\Core\FieldFile
core/lib/Drupal/Core/Field/RequiredFieldStorageDefinitionInterface.phpView source
<?php
namespace Drupal\Core\Field;
/**
* Defines an interface for required field storage definitions.
*/
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();
}
Interfaces
Name | Description |
---|---|
RequiredFieldStorageDefinitionInterface | Defines an interface for required field storage definitions. |