You are here

abstract class TestEntityHandlerBase in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php \Drupal\Tests\Core\Entity\TestEntityHandlerBase

Provides a test entity handler.

Hierarchy

Expanded class hierarchy of TestEntityHandlerBase

File

core/tests/Drupal/Tests/Core/Entity/EntityTypeManagerTest.php, line 399
Contains \Drupal\Tests\Core\Entity\EntityTypeManagerTest.

Namespace

Drupal\Tests\Core\Entity
View source
abstract class TestEntityHandlerBase extends EntityHandlerBase {

  /**
   * {@inheritdoc}
   */
  public $moduleHandler;

  /**
   * {@inheritdoc}
   */
  public $stringTranslation;

}

Members

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property
DependencySerializationTrait::$_serviceIds protected property
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
EntityHandlerBase::moduleHandler protected function Gets the module handler. 5
EntityHandlerBase::setModuleHandler public function Sets the module handler for this handler.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TestEntityHandlerBase::$moduleHandler public property The module handler to invoke hooks on. Overrides EntityHandlerBase::$moduleHandler
TestEntityHandlerBase::$stringTranslation public property The string translation service. Overrides StringTranslationTrait::$stringTranslation