Skip to content
Snippets Groups Projects
Commit 9ad0b670 authored by Eric Bremner's avatar Eric Bremner
Browse files

Issue #3193948: fixing issues where service not available on configure section form

parent 32e22af9
No related branches found
No related tags found
No related merge requests found
......@@ -129,8 +129,11 @@ class LayoutBuilderIdsConfigureSection implements EventSubscriberInterface {
// If there is a layout builder id, store it.
if ($layout_builder_id !== NULL) {
// Get the form object from the form state.
$formObject = $form_state->getFormObject();
// Get the layout.
$layout = ConfigureSectionForm::getLayout($form_state);
$layout = $formObject->getLayout();
// Load in the config for this section.
$configuration = $layout->getConfiguration();
......@@ -144,20 +147,6 @@ class LayoutBuilderIdsConfigureSection implements EventSubscriberInterface {
}
/**
* Get the layout object.
*
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The form state object.
*/
private function getLayout(FormStateInterface $form_state) {
// Get the form object.
$formObject = $form_state->getFormObject();
return $formObject->getLayout();
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment