Skip to content
Snippets Groups Projects
Verified Commit 4138c1c2 authored by Lee Rowlands's avatar Lee Rowlands Committed by Lee Rowlands
Browse files

Issue #3276743 by larowlan, optasy, jipiuno: ArgumentCountError: Too few arguments to function

parent e4a5bae4
No related branches found
No related tags found
No related merge requests found
......@@ -50,25 +50,13 @@ class TaxonomyEntityIndexTidDepth extends TaxonomyIndexTidDepth implements Conta
*/
protected $database;
/**
* {@inheritdoc}
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database, VocabularyStorageInterface $vocabulary_storage, TermStorageInterface $term_storage) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $vocabulary_storage, $term_storage);
$this->database = $database;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(
$configuration, $plugin_id, $plugin_definition,
$container->get('database'),
$container->get('entity_type.manager')->getStorage('taxonomy_vocabulary'),
$container->get('entity_type.manager')->getStorage('taxonomy_term')
);
$instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
$instance->database = $container->get('database');
return $instance;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment