Skip to content
Snippets Groups Projects
Commit f2c566e4 authored by Olivier Deboyser's avatar Olivier Deboyser
Browse files

cleanup

parent 8670f3df
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ use Drupal\ui_patterns\Form\ComponentFormBuilderTrait; ...@@ -12,7 +12,7 @@ use Drupal\ui_patterns\Form\ComponentFormBuilderTrait;
use Drupal\ui_patterns_blocks\Plugin\Derivative\ComponentBlock as DerivativeComponentBlock; use Drupal\ui_patterns_blocks\Plugin\Derivative\ComponentBlock as DerivativeComponentBlock;
/** /**
* Provides a generic component block. * Provides a component block.
*/ */
#[Block( #[Block(
id: "ui_patterns_component", id: "ui_patterns_component",
...@@ -43,8 +43,7 @@ class ComponentBlock extends BlockBase { ...@@ -43,8 +43,7 @@ class ComponentBlock extends BlockBase {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function blockForm($form, FormStateInterface $form_state) { public function blockForm($form, FormStateInterface $form_state) {
$form = $this->buildComponentsForm($form_state, [], $this->getDerivativeId()); return $this->buildComponentsForm($form_state, [], $this->getDerivativeId());
return $form;
} }
/** /**
......
...@@ -44,7 +44,6 @@ class ComponentBlock extends DeriverBase implements ContainerDeriverInterface { ...@@ -44,7 +44,6 @@ class ComponentBlock extends DeriverBase implements ContainerDeriverInterface {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function getDerivativeDefinitions($base_plugin_definition) { public function getDerivativeDefinitions($base_plugin_definition) {
/** @var \Drupal\Core\Theme\Component\ComponentMetadata[] $components */
$components = $this->pluginManager->getSortedDefinitions(); $components = $this->pluginManager->getSortedDefinitions();
foreach ($components as $component_id => $component) { foreach ($components as $component_id => $component) {
$this->derivatives[$component_id] = $base_plugin_definition; $this->derivatives[$component_id] = $base_plugin_definition;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment