You are here

public function WeatherDisplayPlaceForm::__construct in Weather 8

Same name and namespace in other branches
  1. 2.0.x src/Form/WeatherDisplayPlaceForm.php \Drupal\weather\Form\WeatherDisplayPlaceForm::__construct()

WeatherDisplayForm constructor.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity Type manager service.

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

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

Overrides ContentEntityForm::__construct

File

src/Form/WeatherDisplayPlaceForm.php, line 47

Class

WeatherDisplayPlaceForm
Form controller for the weather_display_place entity edit forms.

Namespace

Drupal\weather\Form

Code

public function __construct(EntityRepositoryInterface $entity_repository, EntityTypeManagerInterface $entityTypeManager, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->weatherPlaceStorage = $entityTypeManager
    ->getStorage('weather_place');
}