You are here

interface TestBaseFieldDefinitionInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface
  2. 9 core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface

Defines a test interface to mock entity base field definitions.

Hierarchy

Expanded class hierarchy of TestBaseFieldDefinitionInterface

All classes that implement TestBaseFieldDefinitionInterface

File

core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php, line 11

Namespace

Drupal\Tests\Core\Field
View source
interface TestBaseFieldDefinitionInterface extends FieldDefinitionInterface, FieldStorageDefinitionInterface {

}

Members

Namesort descending Modifiers Type Description Overrides
CacheableDependencyInterface::getCacheContexts public function The cache contexts associated with this object. 19
CacheableDependencyInterface::getCacheMaxAge public function The maximum age for which this object may be cached. 19
CacheableDependencyInterface::getCacheTags public function The cache tags associated with this object. 13
DataDefinitionInterface::addConstraint public function Adds a validation constraint. 2
DataDefinitionInterface::createFromDataType public static function Creates a new data definition object. 2
DataDefinitionInterface::getClass public function Returns the class used for creating the typed data object. 2
DataDefinitionInterface::getConstraint public function Returns a validation constraint. 2
DataDefinitionInterface::getConstraints public function Returns an array of validation constraints. 2
DataDefinitionInterface::getDataType public function Returns the data type of the data. 2
DataDefinitionInterface::getDescription public function Returns a human readable description. 2
DataDefinitionInterface::getLabel public function Returns a human readable label. 2
DataDefinitionInterface::getSetting public function Returns the value of a given setting. 2
DataDefinitionInterface::getSettings public function Returns the array of settings, as required by the used class. 2
DataDefinitionInterface::isComputed public function Determines whether the data value is computed. 1
DataDefinitionInterface::isInternal public function Determines whether the data value is internal. 2
DataDefinitionInterface::isList public function Returns whether the data is multi-valued, i.e. a list of data items. 2
DataDefinitionInterface::isReadOnly public function Determines whether the data is read-only. 1
FieldDefinitionInterface::getConfig public function Gets an object that can be saved in configuration. 3
FieldDefinitionInterface::getDefaultValue public function Returns the default value for the field in a newly created entity. 3
FieldDefinitionInterface::getDefaultValueCallback public function Returns the default value callback for the field. 3
FieldDefinitionInterface::getDefaultValueLiteral public function Returns the default value literal for the field. 3
FieldDefinitionInterface::getDisplayOptions public function Returns the default display options for the field. 2
FieldDefinitionInterface::getFieldStorageDefinition public function Returns the field storage definition. 2
FieldDefinitionInterface::getName public function Returns the machine name of the field. 3
FieldDefinitionInterface::getTargetBundle public function Gets the bundle the field is attached to. 3
FieldDefinitionInterface::getTargetEntityTypeId public function Returns the ID of the entity type the field is attached to. 3
FieldDefinitionInterface::getType public function Returns the field type. 3
FieldDefinitionInterface::getUniqueIdentifier public function Returns a unique identifier for the field. 2
FieldDefinitionInterface::isDisplayConfigurable public function Returns whether the display for the field can be configured. 2
FieldDefinitionInterface::isRequired public function Returns whether the field can be empty. Overrides DataDefinitionInterface::isRequired 1
FieldDefinitionInterface::isTranslatable public function Returns whether the field is translatable. 3
FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED constant Value indicating a field accepts an unlimited number of values.
FieldStorageDefinitionInterface::getCardinality public function Returns the maximum number of items allowed for the field. 1
FieldStorageDefinitionInterface::getColumns public function Returns the field columns, as defined in the field schema. 1
FieldStorageDefinitionInterface::getMainPropertyName public function Returns the name of the main property, if any. 1
FieldStorageDefinitionInterface::getOptionsProvider public function Gets an options provider for the given field item property. 1
FieldStorageDefinitionInterface::getPropertyDefinition public function Gets the definition of a contained property. 1
FieldStorageDefinitionInterface::getPropertyDefinitions public function Gets an array of property definitions of contained properties. 1
FieldStorageDefinitionInterface::getPropertyNames public function Returns the names of the field's subproperties. 1
FieldStorageDefinitionInterface::getProvider public function Returns the name of the provider of this field. 1
FieldStorageDefinitionInterface::getSchema public function Returns the field schema. 1
FieldStorageDefinitionInterface::getUniqueStorageIdentifier public function Returns a unique identifier for the field storage. 1
FieldStorageDefinitionInterface::hasCustomStorage public function Returns the storage behavior for this field. 1
FieldStorageDefinitionInterface::isBaseField public function Determines whether the field is a base field. 1
FieldStorageDefinitionInterface::isDeleted public function Returns whether the field is deleted or not. 1
FieldStorageDefinitionInterface::isMultiple public function Returns whether the field can contain multiple items. 1
FieldStorageDefinitionInterface::isRevisionable public function Returns whether the field storage is revisionable. 1
FieldStorageDefinitionInterface::setTranslatable public function Sets whether the field supports translation. 2
ListDataDefinitionInterface::createFromItemType public static function Creates a new list data definition for items of the given data type. 2
ListDataDefinitionInterface::getItemDefinition public function Gets the data definition of an item of the list. 2