You are here

public function BlockVisibility::__construct in Drupal 9

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

Constructs a BlockVisibility object.

Parameters

array $configuration: The plugin configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

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

Overrides PluginBase::__construct

File

core/modules/block/src/Plugin/migrate/process/BlockVisibility.php, line 58

Class

BlockVisibility
Plugin annotation @MigrateProcessPlugin( id = "block_visibility" )

Namespace

Drupal\block\Plugin\migrate\process

Code

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