function BlockedIp::__construct

Same name in other branches
  1. 9 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::__construct()
  2. 10 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::__construct()
  3. 11.x 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 definition.

\Drupal\migrate\Plugin\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 42

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.