Commit bff96f48 authored by webchick's avatar webchick

Issue #2004408 follow-up by tim.plunkett: Fixed broken tests due to missing use statement.

parent 79a7f1cf
......@@ -12,6 +12,7 @@
use Drupal\Core\Config\Entity\ConfigEntityListController;
use Drupal\Core\Entity\EntityControllerInterface;
use Drupal\Core\Entity\EntityStorageControllerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......@@ -34,7 +35,8 @@ public static function createInstance(ContainerInterface $container, $entity_typ
$entity_type,
$container->get('plugin.manager.entity')->getStorageController($entity_type),
$entity_info,
$container->get('plugin.manager.views.display')
$container->get('plugin.manager.views.display'),
$container->get('module_handler')
);
}
......@@ -49,11 +51,12 @@ public static function createInstance(ContainerInterface $container, $entity_typ
* An array of entity info for this entity type.
* @param \Drupal\Component\Plugin\PluginManagerInterface $display_manager
* The views display plugin manager to use.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
*/
public function __construct($entity_type, EntityStorageControllerInterface $storage, $entity_info, PluginManagerInterface $display_manager) {
$this->entityType = $entity_type;
$this->storage = $storage;
$this->entityInfo = $entity_info;
public function __construct($entity_type, EntityStorageControllerInterface $storage, $entity_info, PluginManagerInterface $display_manager, ModuleHandlerInterface $module_handler) {
parent::__construct($entity_type, $entity_info, $storage, $module_handler);
$this->displayManager = $display_manager;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment