RequiredFieldStorageDefinitionInterface.php
Same filename in other branches
Namespace
Drupal\Core\FieldFile
-
core/
lib/ Drupal/ Core/ Field/ RequiredFieldStorageDefinitionInterface.php
View 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
Title | Deprecated | Summary |
---|---|---|
RequiredFieldStorageDefinitionInterface | Defines an interface for required field storage definitions. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.