You are here

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

Constructs a ContentEntityForm object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

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

Overrides ContentEntityForm::__construct

File

src/Form/SiteSettingEntityForm.php, line 40

Class

SiteSettingEntityForm
Form controller for Site Setting edit forms.

Namespace

Drupal\site_settings\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL, SiteSettingsLoader $site_settings_loader) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->siteSettingsLoader = $site_settings_loader;
}