interface TestBaseFieldDefinitionInterface
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface
- 10 core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface
- 11.x core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface
Defines a test interface to mock entity base field definitions.
Hierarchy
- interface \Drupal\Core\Field\FieldDefinitionInterface implements \Drupal\Core\TypedData\ListDataDefinitionInterface, \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Core\Field\FieldStorageDefinitionInterface implements \Drupal\Core\Cache\CacheableDependencyInterface
- interface \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface implements \Drupal\Core\Field\FieldDefinitionInterface, \Drupal\Core\Field\FieldStorageDefinitionInterface
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\FieldView source
interface TestBaseFieldDefinitionInterface extends FieldDefinitionInterface, FieldStorageDefinitionInterface {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
CacheableDependencyInterface::getCacheContexts | public | function | The cache contexts associated with this object. | 34 | |
CacheableDependencyInterface::getCacheMaxAge | public | function | The maximum age for which this object may be cached. | 34 | |
CacheableDependencyInterface::getCacheTags | public | function | The cache tags associated with this object. | 27 | |
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. | 3 | |
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. | 3 | |
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. | 4 | |
FieldDefinitionInterface::getFieldStorageDefinition | public | function | Returns the field storage definition. | 4 | |
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. | 4 | |
FieldDefinitionInterface::isDisplayConfigurable | public | function | Returns whether the display for the field can be configured. | 4 | |
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. | 2 | |
FieldStorageDefinitionInterface::getColumns | public | function | Returns the field columns, as defined in the field schema. | 2 | |
FieldStorageDefinitionInterface::getMainPropertyName | public | function | Returns the name of the main property, if any. | 2 | |
FieldStorageDefinitionInterface::getOptionsProvider | public | function | Gets an options provider for the given field item property. | 2 | |
FieldStorageDefinitionInterface::getPropertyDefinition | public | function | Gets the definition of a contained property. | 2 | |
FieldStorageDefinitionInterface::getPropertyDefinitions | public | function | Gets an array of property definitions of contained properties. | 2 | |
FieldStorageDefinitionInterface::getPropertyNames | public | function | Returns the names of the field's subproperties. | 2 | |
FieldStorageDefinitionInterface::getProvider | public | function | Returns the name of the provider of this field. | 2 | |
FieldStorageDefinitionInterface::getSchema | public | function | Returns the field schema. | 2 | |
FieldStorageDefinitionInterface::getUniqueStorageIdentifier | public | function | Returns a unique identifier for the field storage. | 2 | |
FieldStorageDefinitionInterface::hasCustomStorage | public | function | Returns the storage behavior for this field. | 2 | |
FieldStorageDefinitionInterface::isBaseField | public | function | Determines whether the field is a base field. | 2 | |
FieldStorageDefinitionInterface::isDeleted | public | function | Returns whether the field is deleted or not. | 2 | |
FieldStorageDefinitionInterface::isMultiple | public | function | Returns whether the field can contain multiple items. | 2 | |
FieldStorageDefinitionInterface::isRevisionable | public | function | Returns whether the field storage is revisionable. | 2 | |
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 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.