function BlockedIp::create

Same name in other branches
  1. 9 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::create()
  2. 10 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::create()
  3. 11.x core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php, line 50

Class

BlockedIp
Destination for blocked IP addresses.

Namespace

Drupal\ban\Plugin\migrate\destination

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) {
    return new static($configuration, $plugin_id, $plugin_definition, $migration, $container->get('ban.ip_manager'));
}

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