Home
last modified time | relevance | path

Searched refs:entityRepository (Results 1 – 25 of 98) sorted by relevance

1234

/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/KernelTests/Core/Entity/
H A DEntityRepositoryTest.php46 protected $entityRepository; variable in Drupal\\KernelTests\\Core\\Entity\\EntityRepositoryTest
55 $this->entityRepository = $this->container->get('entity.repository');
87 $active = $this->entityRepository->getActive($entity_type_id, -1);
100 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
114 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
121 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
136 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
141 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $it_contexts);
155 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
218 $canonical = $this->entityRepository->getActive($entity_type_id, -1);
[all …]
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/KernelTests/Core/Entity/
H A DEntityRepositoryTest.php46 protected $entityRepository; variable in Drupal\\KernelTests\\Core\\Entity\\EntityRepositoryTest
55 $this->entityRepository = $this->container->get('entity.repository');
87 $active = $this->entityRepository->getActive($entity_type_id, -1);
100 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
114 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
121 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
136 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
141 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $it_contexts);
155 $active = $this->entityRepository->getActive($entity_type_id, $entity->id(), $en_contexts);
218 $canonical = $this->entityRepository->getActive($entity_type_id, -1);
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/serialization/tests/src/Unit/EntityResolver/
H A DUuidResolverTest.php27 protected $entityRepository; variable in Drupal\\Tests\\serialization\\Unit\\EntityResolver\\UuidResolverTest
33 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
35 $this->resolver = new UuidResolver($this->entityRepository);
42 $this->entityRepository->expects($this->never())
53 $this->entityRepository->expects($this->never())
70 $this->entityRepository->expects($this->once())
95 $this->entityRepository->expects($this->once())
/dports/www/drupal9/drupal-9.2.10/core/modules/serialization/tests/src/Unit/EntityResolver/
H A DUuidResolverTest.php27 protected $entityRepository; variable in Drupal\\Tests\\serialization\\Unit\\EntityResolver\\UuidResolverTest
33 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
35 $this->resolver = new UuidResolver($this->entityRepository);
42 $this->entityRepository->expects($this->never())
53 $this->entityRepository->expects($this->never())
70 $this->entityRepository->expects($this->once())
95 $this->entityRepository->expects($this->once())
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/Tests/Core/ParamConverter/
H A DEntityConverterTest.php44 protected $entityRepository; variable in Drupal\\Tests\\Core\\ParamConverter\\EntityConverterTest
60 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
62 $this->entityConverter = new EntityConverter($this->entityTypeManager, $this->entityRepository);
161 $container_entity_repository = clone $this->entityRepository;
181 $this->entityConverter = new EntityConverter($this->entityTypeManager, $this->entityRepository);
198 $this->entityConverter = new EntityConverter($this->entityTypeManager, $this->entityRepository);
223 $this->entityRepository->expects($this->any())
233 $this->entityConverter = new EntityConverter($this->entityTypeManager, $this->entityRepository);
248 $this->entityConverter = new EntityConverter($this->entityTypeManager, $this->entityRepository);
296 $this->entityRepository->expects($this->any())
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/views/tests/src/Unit/Plugin/field/
H A DFieldTest.php47 protected $entityRepository; variable in Drupal\\Tests\\views\\Unit\\Plugin\\field\\FieldTest
92 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
129 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
142 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
171 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
198 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
224 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
246 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
272 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
323 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
[all …]
/dports/www/drupal9/drupal-9.2.10/core/modules/views/tests/src/Unit/Plugin/field/
H A DFieldTest.php47 protected $entityRepository; variable in Drupal\\Tests\\views\\Unit\\Plugin\\field\\FieldTest
92 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
129 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
142 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
171 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
198 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
224 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
246 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
272 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
323 …dTypePluginManager, $this->languageManager, $this->renderer, $this->entityRepository, $this->entit…
[all …]
/dports/www/drupal8/drupal-8.9.20/core/modules/editor/src/Plugin/Filter/
H A DEditorFileReference.php39 protected $entityRepository; variable in Drupal\\editor\\Plugin\\Filter\\EditorFileReference
54 $this->entityRepository = $entity_repository;
86 $file = $this->entityRepository->loadEntityByUuid('file', $uuid);
96 $file = $this->entityRepository->loadEntityByUuid('file', $uuid);
/dports/www/drupal9/drupal-9.2.10/core/modules/book/src/
H A DBookExport.php42 protected $entityRepository; variable in Drupal\\book\\BookExport
62 $this->entityRepository = $entity_repository;
92 $node = $this->entityRepository->getTranslationFromContext($node);
126 $node = $this->entityRepository->getTranslationFromContext($node);
/dports/www/drupal8/drupal-8.9.20/core/lib/Drupal/Core/ParamConverter/
H A DEntityConverter.php93 protected $entityRepository; variable in Drupal\\Core\\ParamConverter\\EntityConverter
116 $this->entityRepository = $entity_repository;
128 return $this->entityRepository->getActive($entity_type_id, $value);
149 $entity = $this->entityRepository->getCanonical($entity_type_id, $value, $contexts);
178 …$revision = $this->entityRepository->getActive($entity->getEntityTypeId(), $entity->id(), $context…
H A DEntityRevisionParamConverter.php44 protected $entityRepository; variable in Drupal\\Core\\ParamConverter\\EntityRevisionParamConverter
56 $this->entityRepository = $entity_repository;
69 …$entity = $this->entityRepository->getTranslationFromContext($entity, NULL, ['operation' => 'entit…
/dports/www/drupal9/drupal-9.2.10/core/lib/Drupal/Core/ParamConverter/
H A DEntityConverter.php97 protected $entityRepository; variable in Drupal\\Core\\ParamConverter\\EntityConverter
111 $this->entityRepository = $entity_repository;
123 return $this->entityRepository->getActive($entity_type_id, $value);
144 $entity = $this->entityRepository->getCanonical($entity_type_id, $value, $contexts);
H A DEntityRevisionParamConverter.php44 protected $entityRepository; variable in Drupal\\Core\\ParamConverter\\EntityRevisionParamConverter
56 $this->entityRepository = $entity_repository;
69 …$entity = $this->entityRepository->getTranslationFromContext($entity, NULL, ['operation' => 'entit…
/dports/www/drupal8/drupal-8.9.20/core/modules/serialization/src/EntityResolver/
H A DUuidResolver.php18 protected $entityRepository; variable in Drupal\\serialization\\EntityResolver\\UuidResolver
27 $this->entityRepository = $entity_repository;
38 if ($entity = $this->entityRepository->loadEntityByUuid($entity_type, $uuid)) {
/dports/www/drupal9/drupal-9.2.10/core/modules/serialization/src/EntityResolver/
H A DUuidResolver.php18 protected $entityRepository; variable in Drupal\\serialization\\EntityResolver\\UuidResolver
27 $this->entityRepository = $entity_repository;
38 if ($entity = $this->entityRepository->loadEntityByUuid($entity_type, $uuid)) {
/dports/www/drupal9/drupal-9.2.10/core/modules/editor/src/Plugin/Filter/
H A DEditorFileReference.php33 protected $entityRepository; variable in Drupal\\editor\\Plugin\\Filter\\EditorFileReference
57 $this->entityRepository = $entity_repository;
95 $file = $this->entityRepository->loadEntityByUuid('file', $uuid);
124 $file = $this->entityRepository->loadEntityByUuid('file', $uuid);
/dports/www/drupal8/drupal-8.9.20/core/tests/Drupal/Tests/Core/Entity/
H A DEntityRepositoryTest.php47 protected $entityRepository; variable in Drupal\\Tests\\Core\\Entity\\EntityRepositoryTest
59 …$this->entityRepository = new EntityRepository($this->entityTypeManager->reveal(), $this->language…
94 …$this->assertSame($entity->reveal(), $this->entityRepository->getTranslationFromContext($entity->r…
95 …$this->assertSame($translated_entity->reveal(), $this->entityRepository->getTranslationFromContext…
/dports/www/drupal9/drupal-9.2.10/core/tests/Drupal/Tests/Core/Entity/
H A DEntityRepositoryTest.php47 protected $entityRepository; variable in Drupal\\Tests\\Core\\Entity\\EntityRepositoryTest
59 …$this->entityRepository = new EntityRepository($this->entityTypeManager->reveal(), $this->language…
94 …$this->assertSame($entity->reveal(), $this->entityRepository->getTranslationFromContext($entity->r…
95 …$this->assertSame($translated_entity->reveal(), $this->entityRepository->getTranslationFromContext…
/dports/www/drupal9/drupal-9.2.10/core/modules/views/src/Plugin/views/area/
H A DEntity.php41 protected $entityRepository; variable in Drupal\\views\\Plugin\\views\\area\\Entity
70 $this->entityRepository = $entity_repository;
138 …if ($target_entity = $this->entityRepository->loadEntityByConfigTarget($this->entityType, $this->o…
191 …if ($entity = $this->entityRepository->loadEntityByConfigTarget($this->entityType, $this->options[…
214 …if ($entity = $this->entityRepository->loadEntityByConfigTarget($this->entityType, $this->options[…
/dports/www/drupal8/drupal-8.9.20/core/modules/views/tests/src/Unit/Plugin/area/
H A DEntityTest.php37 protected $entityRepository; variable in Drupal\\Tests\\views\\Unit\\Plugin\\area\\EntityTest
88 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
104 … ['entity_type' => 'entity_test'], $this->entityTypeManager, $this->entityRepository, $this->entit…
173 $this->entityRepository->expects($this->any())
247 $this->entityRepository->expects($this->once())
291 $this->entityRepository->expects($this->once())
320 $this->entityRepository->expects($this->once())
/dports/www/drupal9/drupal-9.2.10/core/modules/views/tests/src/Unit/Plugin/area/
H A DEntityTest.php37 protected $entityRepository; variable in Drupal\\Tests\\views\\Unit\\Plugin\\area\\EntityTest
88 $this->entityRepository = $this->createMock(EntityRepositoryInterface::class);
104 … ['entity_type' => 'entity_test'], $this->entityTypeManager, $this->entityRepository, $this->entit…
173 $this->entityRepository->expects($this->any())
247 $this->entityRepository->expects($this->once())
291 $this->entityRepository->expects($this->once())
320 $this->entityRepository->expects($this->once())
/dports/www/drupal8/drupal-8.9.20/core/modules/media/src/Controller/
H A DMediaFilterController.php47 protected $entityRepository; variable in Drupal\\media\\Controller\\MediaFilterController
62 $this->entityRepository = $entity_repository;
116 if ($media = $this->entityRepository->loadEntityByUuid('media', $uuid)) {
117 …$headers['Drupal-Media-Label'] = $this->entityRepository->getTranslationFromContext($media)->label…
/dports/www/drupal9/drupal-9.2.10/core/modules/media/src/Controller/
H A DMediaFilterController.php47 protected $entityRepository; variable in Drupal\\media\\Controller\\MediaFilterController
62 $this->entityRepository = $entity_repository;
116 if ($media = $this->entityRepository->loadEntityByUuid('media', $uuid)) {
117 …$headers['Drupal-Media-Label'] = $this->entityRepository->getTranslationFromContext($media)->label…
/dports/www/drupal8/drupal-8.9.20/core/modules/layout_builder/tests/src/Unit/
H A DOverridesSectionStorageTest.php54 protected $entityRepository; variable in Drupal\\Tests\\layout_builder\\Unit\\OverridesSectionStorageTest
65 $this->entityRepository = $this->prophesize(EntityRepositoryInterface::class);
72 …yFieldManager->reveal(), $section_storage_manager->reveal(), $this->entityRepository->reveal(), $a…
136 …$this->entityRepository->getActive('my_entity_type', 'entity_without_layout')->willReturn($entity_…
141 …$this->entityRepository->getActive('my_entity_type', 'entity_with_layout')->willReturn($entity_wit…
202 …$this->entityRepository->getActive($expected_entity_type_id, 'entity_without_layout')->willReturn(…
206 …$this->entityRepository->getActive($expected_entity_type_id, 'entity_with_layout')->willReturn($en…
214 $this->entityRepository->getActive(Argument::any())->shouldNotBeCalled();
/dports/www/drupal9/drupal-9.2.10/core/modules/node/src/Controller/
H A DNodePreviewController.php22 protected $entityRepository; variable in Drupal\\node\\Controller\\NodePreviewController
36 $this->entityRepository = $entity_repository;
75 return $this->entityRepository->getTranslationFromContext($node_preview)->label();

1234