You are here

public function PreviewFactory::__construct in View Modes Display 8.2

DefaultController constructor.

Parameters

Drupal\Core\Config\ConfigFactoryInterface $configFactory: Config Factory.

Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity Type Manager.

Drupal\Core\Entity\EntityDisplayRepositoryInterface $entityDisplayRepository: Entity Display Repository.

File

src/Service/PreviewFactory.php, line 48

Class

PreviewFactory
Class PreviewFactory.

Namespace

Drupal\view_modes_display\Service

Code

public function __construct(ConfigFactoryInterface $configFactory, EntityTypeManagerInterface $entityTypeManager, EntityDisplayRepositoryInterface $entityDisplayRepository) {
  $this->configFactory = $configFactory;
  $this->entityTypeManager = $entityTypeManager;
  $this->entityDisplayRepository = $entityDisplayRepository;
}