// If this block is context-aware, set the context mapping.
if ($this->block instanceof ContextAwarePluginInterface
) { $this->block->
setContextMapping($subform_state->
getValue('context_mapping',
[]));
} $configuration =
$this->block->
getConfiguration();
$section =
$this->sectionStorage->
getSection($this->delta
);
$section->
getComponent($this->uuid
)->
setConfiguration($configuration);
$this->layoutTempstoreRepository->
set($this->sectionStorage
);
$form_state->
setRedirectUrl($this->sectionStorage->
getLayoutBuilderUrl());
} /**
* {@inheritdoc}
*/
protected function successfulAjaxSubmit(array
$form, FormStateInterface
$form_state) { return $this->
rebuildAndClose($this->sectionStorage
);
} /**
* Retrieves the plugin form for a given block.
*
* @param \Drupal\Core\Block\BlockPluginInterface $block
* The block plugin.
*
* @return \Drupal\Core\Plugin\PluginFormInterface
* The plugin form for the block.
*/