public function BlockBase::__construct in Display Suite 8.4
Same name and namespace in other branches
- 8.2 src/Plugin/DsField/BlockBase.php \Drupal\ds\Plugin\DsField\BlockBase::__construct()
- 8.3 src/Plugin/DsField/BlockBase.php \Drupal\ds\Plugin\DsField\BlockBase::__construct()
Constructs a Display Suite field plugin.
Overrides DsFieldBase::__construct
File
- src/
Plugin/ DsField/ BlockBase.php, line 49
Class
- BlockBase
- The base plugin to create DS block fields.
Namespace
Drupal\ds\Plugin\DsFieldCode
public function __construct($configuration, $plugin_id, $plugin_definition, ContextHandlerInterface $contextHandler, ContextRepositoryInterface $contextRepository, BlockManagerInterface $block_manager) {
$this->blockManager = $block_manager;
$this->contextHandler = $contextHandler;
$this->contextRepository = $contextRepository;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}