You are here

public function BlockedIP::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIP::__construct()

Constructs a BlockedIP object.

Parameters

array $configuration: Plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definiiton.

\Drupal\migrate\Entity\MigrationInterface $migration: The current migration.

\Drupal\ban\BanIpManagerInterface $ban_manager: The IP manager service.

Overrides DestinationBase::__construct

File

core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php, line 47
Contains \Drupal\ban\Plugin\migrate\destination\BlockedIP.

Class

BlockedIP
Destination for blocked IP addresses.

Namespace

Drupal\ban\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, BanIpManagerInterface $ban_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
  $this->banManager = $ban_manager;
}