class LayoutWithoutLabel

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Layout/LayoutWithoutLabel.php \Drupal\layout_builder_test\Plugin\Layout\LayoutWithoutLabel

Layout plugin without a label configuration.

Plugin annotation


@Layout(
  id = "layout_without_label",
  label = @Translation("Layout Without Label"),
  regions = {
    "main" = {
      "label" = @Translation("Main Region")
    }
  },
)

Hierarchy

Expanded class hierarchy of LayoutWithoutLabel

File

core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Layout/LayoutWithoutLabel.php, line 21

Namespace

Drupal\layout_builder_test\Plugin\Layout
View source
class LayoutWithoutLabel extends LayoutDefault {
  
  /**
   * {@inheritdoc}
   */
  public function defaultConfiguration() {
    return [];
  }
  
  /**
   * {@inheritdoc}
   */
  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    return $form;
  }
  
  /**
   * {@inheritdoc}
   */
  public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.