public function BlockFormAlter::layoutBuilderEmbedAlter in Block Style Plugins 8.2
Alter the component settings form in Layout Builder settings tray.
Parameters
array $form: The form definition array for the block configuration form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
string $form_id: Id of the current form.
File
- src/
BlockFormAlter.php, line 137
Class
- BlockFormAlter
- Base class for Block style plugins.
Namespace
Drupal\block_style_pluginsCode
public function layoutBuilderEmbedAlter(array &$form, FormStateInterface $form_state, $form_id) {
if ($form_id == 'layout_builder_update_block' || $form_id == 'layout_builder_add_block') {
$this
->alterForm($form, $form_state, TRUE);
}
}