You are here

public function SiteSettingEntityListBuilder::__construct in Site Settings and Labels 8

Constructs a new EntityListBuilder object.

Parameters

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

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\Core\Utility\LinkGeneratorInterface $link_generator: Link generator.

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

\Drupal\site_settings\SiteSettingsRenderer $site_settings_reader: Site settings renderer.

\Drupal\site_settings\SiteSettingsLoader $site_settings_loader: The site settings loader service.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

Overrides EntityListBuilder::__construct

File

src/SiteSettingEntityListBuilder.php, line 83

Class

SiteSettingEntityListBuilder
Defines a class to build a listing of Site Setting entities.

Namespace

Drupal\site_settings

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, LinkGeneratorInterface $link_generator, EntityTypeManagerInterface $entity_type_manager, SiteSettingsRenderer $site_settings_reader, SiteSettingsLoader $site_settings_loader, RendererInterface $renderer) {
  parent::__construct($entity_type, $storage);
  $this->linkGeneration = $link_generator;
  $this->entityTypeManager = $entity_type_manager;
  $this->siteSettingsRender = $site_settings_reader;
  $this->siteSettingsLoader = $site_settings_loader;
  $this->renderer = $renderer;
}