Loading src/Plugin/Block/JSComponentBlockType.php +13 −4 Original line number Diff line number Diff line Loading @@ -35,6 +35,11 @@ class JSComponentBlockType extends BlockBase implements ContainerFactoryPluginIn */ protected $componentRootId; /** * @var \Drupal\js_component\Plugin\JSComponent */ protected $componentInstance; /** * @var LibraryDiscoveryInterface */ Loading Loading @@ -345,12 +350,16 @@ class JSComponentBlockType extends BlockBase implements ContainerFactoryPluginIn * @return \Drupal\js_component\Plugin\JSComponent */ protected function getComponentInstance() { return $this->jsComponentManager if (!isset($this->componentInstance)) { $this->componentInstance = $this->jsComponentManager ->createInstance($this->getComponentPluginId(), [ 'overrides' => $this->getConfigurationOverrides() ]); } return $this->componentInstance; } /** * Get the component attachments. * Loading Loading
src/Plugin/Block/JSComponentBlockType.php +13 −4 Original line number Diff line number Diff line Loading @@ -35,6 +35,11 @@ class JSComponentBlockType extends BlockBase implements ContainerFactoryPluginIn */ protected $componentRootId; /** * @var \Drupal\js_component\Plugin\JSComponent */ protected $componentInstance; /** * @var LibraryDiscoveryInterface */ Loading Loading @@ -345,12 +350,16 @@ class JSComponentBlockType extends BlockBase implements ContainerFactoryPluginIn * @return \Drupal\js_component\Plugin\JSComponent */ protected function getComponentInstance() { return $this->jsComponentManager if (!isset($this->componentInstance)) { $this->componentInstance = $this->jsComponentManager ->createInstance($this->getComponentPluginId(), [ 'overrides' => $this->getConfigurationOverrides() ]); } return $this->componentInstance; } /** * Get the component attachments. * Loading