function BlockSettings::__construct
File
-
core/
modules/ block/ src/ Plugin/ migrate/ process/ BlockSettings.php, line 29
Class
- BlockSettings
- Determines the block settings.
Namespace
Drupal\block\Plugin\migrate\processCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ?BlockManagerInterface $blockManager = NULL) {
if (empty($blockManager)) {
@trigger_error('Calling ' . __METHOD__ . '() without the $blockManager parameter is deprecated in drupal:11.2.0 and must be provided in drupal:12.0.0. See https://www.drupal.org/node/3522023', E_USER_DEPRECATED);
$blockManager = \Drupal::service(BlockManagerInterface::class);
}
$this->blockManager = $blockManager;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.