You are here

public function VueBlockDeriver::__construct in Decoupled Blocks: Vue.js 8

VueBlockDeriver constructor.

Parameters

\Drupal\pdb\ComponentDiscoveryInterface $component_discovery: The component discovery service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config Factory service.

Overrides PdbBlockDeriver::__construct

File

src/Plugin/Derivative/VueBlockDeriver.php, line 30

Class

VueBlockDeriver
Derives block plugin definitions for Vue components.

Namespace

Drupal\pdb_vue\Plugin\Derivative

Code

public function __construct(ComponentDiscoveryInterface $component_discovery, ConfigFactoryInterface $config_factory) {
  parent::__construct($component_discovery);
  $this->configFactory = $config_factory;
}