class EntityBaseTest

Same name in this branch
  1. 10 core/tests/Drupal/KernelTests/Core/Entity/EntityBaseTest.php \Drupal\KernelTests\Core\Entity\EntityBaseTest
  2. 10 core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php \Drupal\Tests\Core\Entity\KeyValueStore\EntityBaseTest
Same name and namespace in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Entity/EntityBaseTest.php \Drupal\KernelTests\Core\Entity\EntityBaseTest
  2. 11.x core/tests/Drupal/Tests/Core/Entity/KeyValueStore/KeyValueEntityStorageTest.php \Drupal\Tests\Core\Entity\KeyValueStore\EntityBaseTest
  3. 9 core/tests/Drupal/KernelTests/Core/Entity/EntityBaseTest.php \Drupal\KernelTests\Core\Entity\EntityBaseTest

Hierarchy

Expanded class hierarchy of EntityBaseTest

File

core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php, line 605

Namespace

Drupal\Tests\Core\Entity
View source
class EntityBaseTest extends EntityBase {
  public $id;
  public $langcode;
  public $uuid;
  public $label;

}

Members

Title Sort descending Modifiers Object type Summary Member alias Overrides
CacheableDependencyTrait::$cacheContexts protected property Cache contexts.
CacheableDependencyTrait::$cacheContexts protected property Cache contexts.
CacheableDependencyTrait::$cacheMaxAge protected property Cache max-age.
CacheableDependencyTrait::$cacheMaxAge protected property Cache max-age.
CacheableDependencyTrait::$cacheTags protected property Cache tags.
CacheableDependencyTrait::$cacheTags protected property Cache tags.
CacheableDependencyTrait::setCacheability protected function Sets cacheability; useful for value object constructors.
CacheableDependencyTrait::setCacheability protected function Sets cacheability; useful for value object constructors.
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function Aliased as: traitSleep 2
DependencySerializationTrait::__sleep public function Aliased as: traitSleep 2
DependencySerializationTrait::__wakeup public function #[\ReturnTypeWillChange] 2
DependencySerializationTrait::__wakeup public function #[\ReturnTypeWillChange] 2
EntityBase::$enforceIsNew protected property Boolean indicating whether the entity should be forced to be new.
EntityBase::$enforceIsNew protected property Boolean indicating whether the entity should be forced to be new.
EntityBase::$entityTypeId protected property The entity type.
EntityBase::$entityTypeId protected property The entity type.
EntityBase::$typedData protected property A typed data object wrapping this entity.
EntityBase::$typedData protected property A typed data object wrapping this entity.
EntityBase::access public function
EntityBase::bundle public function
EntityBase::create public static function 1
EntityBase::create public static function 1
EntityBase::createDuplicate public function 1
EntityBase::delete public function 1
EntityBase::enforceIsNew public function
EntityBase::entityTypeBundleInfo protected function Gets the entity type bundle info service.
EntityBase::entityTypeManager protected function Gets the entity type manager.
EntityBase::getCacheContexts public function
EntityBase::getCacheContexts public function
EntityBase::getCacheMaxAge public function
EntityBase::getCacheMaxAge public function
EntityBase::getCacheTags public function
EntityBase::getCacheTags public function
EntityBase::getCacheTagsToInvalidate public function 3
EntityBase::getCacheTagsToInvalidate public function 3
EntityBase::getConfigDependencyKey public function
EntityBase::getConfigDependencyKey public function
EntityBase::getConfigDependencyName public function 1
EntityBase::getConfigDependencyName public function 1
EntityBase::getConfigTarget public function 1
EntityBase::getConfigTarget public function 1
EntityBase::getEntityType public function
EntityBase::getEntityTypeId public function
EntityBase::getListCacheTagsToInvalidate protected function The list cache tags to invalidate for this entity.
EntityBase::getListCacheTagsToInvalidate protected function The list cache tags to invalidate for this entity.
EntityBase::getOriginalId public function 1
EntityBase::getOriginalId public function 1
EntityBase::getTypedData public function
EntityBase::getTypedData public function
EntityBase::getTypedDataClass private function Returns the typed data class name for this entity.
EntityBase::getTypedDataClass private function Returns the typed data class name for this entity.
EntityBase::hasLinkTemplate public function
EntityBase::id public function 9
EntityBase::invalidateTagsOnDelete protected static function Invalidates an entity's cache tags upon delete. 1
EntityBase::invalidateTagsOnDelete protected static function Invalidates an entity's cache tags upon delete. 1
EntityBase::invalidateTagsOnSave protected function Invalidates an entity's cache tags upon save. 2
EntityBase::invalidateTagsOnSave protected function Invalidates an entity's cache tags upon save. 2
EntityBase::isNew public function 2
EntityBase::label public function 5
EntityBase::language public function
EntityBase::languageManager protected function Gets the language manager.
EntityBase::linkTemplates protected function Gets an array link templates. 1
EntityBase::load public static function
EntityBase::load public static function
EntityBase::loadMultiple public static function
EntityBase::loadMultiple public static function
EntityBase::postCreate public function 4
EntityBase::postDelete public static function 17
EntityBase::postLoad public static function 3
EntityBase::postSave public function 11
EntityBase::preCreate public static function 6
EntityBase::preDelete public static function 7
EntityBase::preSave public function 1
EntityBase::referencedEntities public function
EntityBase::save public function 3
EntityBase::setOriginalId public function 1
EntityBase::setOriginalId public function 1
EntityBase::toArray public function 1
EntityBase::toArray public function 1
EntityBase::toLink public function
EntityBase::toUrl public function 2
EntityBase::uriRelationships public function
EntityBase::urlRouteParameters protected function Gets an array of placeholders for this entity. 2
EntityBase::uuid public function
EntityBase::uuidGenerator protected function Gets the UUID generator.
EntityBase::__construct public function Constructs an Entity object. 1
EntityBase::__sleep public function 1
EntityBase::__sleep public function 1
EntityBaseTest::$id public property
EntityBaseTest::$id public property
EntityBaseTest::$label public property
EntityBaseTest::$label public property
EntityBaseTest::$langcode public property
EntityBaseTest::$langcode public property
EntityBaseTest::$uuid public property
EntityBaseTest::$uuid public property
RefinableCacheableDependencyTrait::addCacheableDependency public function 1
RefinableCacheableDependencyTrait::addCacheableDependency public function 1
RefinableCacheableDependencyTrait::addCacheContexts public function
RefinableCacheableDependencyTrait::addCacheContexts public function
RefinableCacheableDependencyTrait::addCacheTags public function
RefinableCacheableDependencyTrait::addCacheTags public function
RefinableCacheableDependencyTrait::mergeCacheMaxAge public function
RefinableCacheableDependencyTrait::mergeCacheMaxAge public function

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