Skip to content
Snippets Groups Projects
Commit e771fa46 authored by Project-Update-bot's avatar Project-Update-bot
Browse files

Automated Project Update Bot fixes from run 11-199781.

parent 8f146edd
No related tags found
No related merge requests found
......@@ -47,10 +47,11 @@ class ExploreDetails extends ControllerBase {
* @param \Drupal\typed_entity\RepositoryManager $repository_manager
* The repository manager.
*/
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info, RepositoryManager $repository_manager) {
public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $bundle_info, RepositoryManager $repository_manager, \Drupal\typed_entity\RepositoryManager $repositoryManager) {
$this->entityTypeManager = $entity_type_manager;
$this->bundleInfo = $bundle_info;
$this->repositoryManager = $repository_manager;
$this->repositoryManager = $repositoryManager;
}
/**
......@@ -60,7 +61,7 @@ class ExploreDetails extends ControllerBase {
return new static(
$container->get('entity_type.manager'),
$container->get('entity_type.bundle.info'),
$container->get(RepositoryManager::class)
$this->repositoryManager
);
}
......
......@@ -64,11 +64,12 @@ class ExploreForm extends FormBase {
* @param \Drupal\Core\State\StateInterface $state
* The state interface.
*/
public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, RepositoryManager $repository_manager, StateInterface $state) {
public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $bundleInfo, RepositoryManager $repository_manager, StateInterface $state, \Drupal\typed_entity\RepositoryManager $repositoryManager) {
$this->entityTypeManager = $entityTypeManager;
$this->bundleInfo = $bundleInfo;
$this->repositoryManager = $repository_manager;
$this->state = $state;
$this->repositoryManager = $repositoryManager;
}
/**
......@@ -78,7 +79,7 @@ class ExploreForm extends FormBase {
return new static(
$container->get('entity_type.manager'),
$container->get('entity_type.bundle.info'),
$container->get(RepositoryManager::class),
$this->repositoryManager,
$container->get('state')
);
}
......
......@@ -103,7 +103,7 @@ class TypedEntityRendererTest extends KernelTestBase {
* @return array
* The data.
*/
public function rendererNegotiationViewModeDataProvider(): array {
public static function rendererNegotiationViewModeDataProvider(): array {
return [
['foo', TypedEntityRendererBase::class],
[Teaser::VIEW_MODE, Teaser::class],
......@@ -129,7 +129,7 @@ class TypedEntityRendererTest extends KernelTestBase {
* @return array
* The data.
*/
public function rendererNegotiationStateDataProvider(): array {
public static function rendererNegotiationStateDataProvider(): array {
return [
[FALSE, TypedEntityRendererBase::class],
[TRUE, ConditionalRenderer::class],
......
......@@ -81,7 +81,7 @@ class RepositoryManagerTest extends UnitTestCase {
/**
* Data provider for testGet.
*/
public function getDataProvider(): array {
public static function getDataProvider(): array {
return [
['foo', 'bar', 1],
['oof', 'faa', 3],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment