| EntityTrait |
trait |
core/tests/Drupal/Tests/EntityTrait.php |
Provides helper methods for working with entities in tests. |
| EntityTrait.php |
file |
core/tests/Drupal/Tests/EntityTrait.php |
|
| EntityTrait::$generatedIds |
property |
core/tests/Drupal/Tests/EntityTrait.php |
A list of entity IDs generated by self::generateRandomEntityId(). |
| EntityTrait::generateRandomEntityId |
function |
core/tests/Drupal/Tests/EntityTrait.php |
Generates a random ID avoiding collisions. |
| EntityTrait::reloadEntity |
function |
core/tests/Drupal/Tests/EntityTrait.php |
Reloads the given entity from the storage and returns it. |
| EntityTranslationFormTest |
class |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
Tests entity translation form. |
| EntityTranslationFormTest.php |
file |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
|
| EntityTranslationFormTest::$defaultTheme |
property |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
The theme to install as the default for testing. |
| EntityTranslationFormTest::$langcodes |
property |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
The test language codes. |
| EntityTranslationFormTest::$modules |
property |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
Modules to install. |
| EntityTranslationFormTest::setUp |
function |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
|
| EntityTranslationFormTest::testEntityFormLanguage |
function |
core/modules/system/tests/src/Functional/Entity/EntityTranslationFormTest.php |
Tests entity form language. |
| EntityTranslationRendererBase |
class |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Defines a base class for entity translation renderers. |
| EntityTranslationRendererBase.php |
file |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
|
| EntityTranslationRendererBase::getEntity |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Gets the entity associated with a row. |
| EntityTranslationRendererBase::getLangcode |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Returns the language code associated with the given row. |
| EntityTranslationRendererBase::getLangcodeByRelationship |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Returns the language code associated with the given row. |
| EntityTranslationRendererBase::preRender |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Runs before each entity is rendered. |
| EntityTranslationRendererBase::preRenderByRelationship |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Runs before each entity is rendered if a relationship is needed. |
| EntityTranslationRendererBase::query |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Alters the query if needed. |
| EntityTranslationRendererBase::render |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Renders entity data. |
| EntityTranslationRendererBase::renderByRelationship |
function |
core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php |
Renders entity data. |
| EntityTranslationRenderTrait |
trait |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
Trait used to instantiate the view's entity translation renderer. |
| EntityTranslationRenderTrait.php |
file |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
|
| EntityTranslationRenderTrait::$entityTranslationRenderer |
property |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
The renderer to be used to render the entity row. |
| EntityTranslationRenderTrait::getEntityTranslationByRelationship |
function |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
Returns the entity translation matching the configured row language. |
| EntityTranslationRenderTrait::getEntityTranslationRenderer |
function |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
Returns the current renderer. |
| EntityTranslationRenderTrait::getEntityTypeId |
function |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
Returns the entity type identifier. |
| EntityTranslationRenderTrait::getLanguageManager |
function |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
Returns the language manager. |
| EntityTranslationRenderTrait::getView |
function |
core/modules/views/src/Entity/Render/EntityTranslationRenderTrait.php |
Returns the top object of a view. |
| EntityTranslationSettings |
class |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
Drupal 7 Entity Translation settings (variables) from database. |
| EntityTranslationSettings.php |
file |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
|
| EntityTranslationSettings::doCount |
function |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
Gets the source count using countQuery(). |
| EntityTranslationSettings::fields |
function |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
Returns available fields on the source. |
| EntityTranslationSettings::getIds |
function |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
Defines the source fields uniquely identifying a source row. |
| EntityTranslationSettings::initializeIterator |
function |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
Initializes the iterator with the source data. |
| EntityTranslationSettings::query |
function |
core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php |
Prepares query object to retrieve data from the source database. |
| EntityTranslationSettingsTest |
class |
core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php |
Tests entity translation settings source plugin. |
| EntityTranslationSettingsTest.php |
file |
core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php |
|
| EntityTranslationSettingsTest::$modules |
property |
core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php |
Modules to install. |
| EntityTranslationSettingsTest::providerSource |
function |
core/modules/content_translation/tests/src/Kernel/Plugin/migrate/source/d7/EntityTranslationSettingsTest.php |
Provides source data for ::testSource. |
| EntityTranslationTest |
class |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Tests entity translation functionality. |
| EntityTranslationTest.php |
file |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
|
| EntityTranslationTest::doTestEntityLanguageMethods |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Executes the entity language method tests for the given entity type. |
| EntityTranslationTest::doTestEntityTranslationAPI |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Executes the Entity Translation API tests for the given entity type. |
| EntityTranslationTest::doTestLanguageChange |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Executes the entity language change test for the given entity type. |
| EntityTranslationTest::doTestLanguageFallback |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Executes the language fallback test for the given entity type. |
| EntityTranslationTest::doTestMultilingualProperties |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Executes the multilingual property tests for the given entity type. |
| EntityTranslationTest::testDeleteEntityTranslation |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Tests that translation statuses are correct after removing translations. |
| EntityTranslationTest::testEntityAdapter |
function |
core/tests/Drupal/KernelTests/Core/Entity/EntityTranslationTest.php |
Tests how entity adapters work with translations. |