function RolesLookup::__construct

Same name and namespace in other branches
  1. 10 core/modules/block/src/Plugin/migrate/process/RolesLookup.php \Drupal\block\Plugin\migrate\process\RolesLookup::__construct()

Constructs a BlockVisibility object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\migrate\MigrateLookupInterface $migrate_lookup: The migrate lookup service.

File

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

Class

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

Namespace

Drupal\block\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrateLookupInterface $migrate_lookup) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->migrateLookup = $migrate_lookup;
    if (isset($configuration['migration'])) {
        $this->migration = $configuration['migration'];
    }
}

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