You are here

public function IPRangesFormController::__construct in IP Ranges 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.

Overrides ContentEntityForm::__construct

File

lib/Drupal/ip_ranges/IPRangesFormController.php, line 16

Class

IPRangesFormController

Namespace

Drupal\ip_ranges

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->ownIp = \Drupal::request()
    ->getClientIp();
  parent::__construct($entity_manager);
}