You are here

ConfigureSectionForm.php in Layout builder ids 8

Same filename and directory in other branches
  1. 2.0.x src/Form/ConfigureSectionForm.php

File

src/Form/ConfigureSectionForm.php
View source
<?php

namespace Drupal\layout_builder_ids\Form;

use Drupal\layout_builder\Form\ConfigureSectionForm as OriginalConfigureSectionForm;

/**
 * Class ConfigureSectionForm.
 *
 * Extend the original form to expose the layout object.
 * See https://www.drupal.org/i/3044117
 */
class ConfigureSectionForm extends OriginalConfigureSectionForm {

  /**
   * Get the layout plugin being modified.
   *
   * @return \Drupal\Core\Layout\LayoutInterface|\Drupal\Core\Plugin\PluginFormInterface
   *   The layout plugin object.
   */
  public function getLayout() {
    return $this->layout;
  }

}

Classes

Namesort descending Description
ConfigureSectionForm Class ConfigureSectionForm.