function RolesLookup::create

Same name in other branches
  1. 11.x core/modules/block/src/Plugin/migrate/process/RolesLookup.php \Drupal\block\Plugin\migrate\process\RolesLookup::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/block/src/Plugin/migrate/process/RolesLookup.php, line 76

Class

RolesLookup
Gets the destination roles ID for an array of source roles IDs.

Namespace

Drupal\block\Plugin\migrate\process

Code

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

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