You are here

public function FeedViewBuilder::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/aggregator/src/FeedViewBuilder.php \Drupal\aggregator\FeedViewBuilder::__construct()

Constructs a new FeedViewBuilder.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Config\Config $config: The 'aggregator.settings' config.

\Drupal\Core\Theme\Registry $theme_registry: The theme registry.

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides EntityViewBuilder::__construct

File

core/modules/aggregator/src/FeedViewBuilder.php, line 53

Class

FeedViewBuilder
View builder handler for aggregator feeds.

Namespace

Drupal\aggregator

Code

public function __construct(EntityTypeInterface $entity_type, EntityRepositoryInterface $entity_repository, LanguageManagerInterface $language_manager, Config $config, Registry $theme_registry, EntityDisplayRepositoryInterface $entity_display_repository, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($entity_type, $entity_repository, $language_manager, $theme_registry, $entity_display_repository);
  $this->config = $config;
  $this->entityTypeManager = $entity_type_manager;
}