function BlockedIp::__construct
Same name in other branches
- 8.9.x core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::__construct()
- 10 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::__construct()
- 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\destinationCode
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.