interface TestBaseFieldDefinitionInterface

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface
  2. 10 core/tests/Drupal/Tests/Core/Field/TestBaseFieldDefinitionInterface.php \Drupal\Tests\Core\Field\TestBaseFieldDefinitionInterface
  3. 8.9.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

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.