function BlockPluginId::__construct

Same name in other branches
  1. 8.9.x core/modules/block/src/Plugin/migrate/process/BlockPluginId.php \Drupal\block\Plugin\migrate\process\BlockPluginId::__construct()
  2. 10 core/modules/block/src/Plugin/migrate/process/BlockPluginId.php \Drupal\block\Plugin\migrate\process\BlockPluginId::__construct()
  3. 11.x core/modules/block/src/Plugin/migrate/process/BlockPluginId.php \Drupal\block\Plugin\migrate\process\BlockPluginId::__construct()

Constructs a BlockPluginId object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

array $plugin_definition: The plugin definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The block content storage object.

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

File

core/modules/block/src/Plugin/migrate/process/BlockPluginId.php, line 49

Class

BlockPluginId
Plugin annotation @MigrateProcessPlugin( id = "block_plugin_id" )

Namespace

Drupal\block\Plugin\migrate\process

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityStorageInterface $storage, MigrateLookupInterface $migrate_lookup) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->blockContentStorage = $storage;
    $this->migrateLookup = $migrate_lookup;
}

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