Skip to content
Snippets Groups Projects

Issue #3349191 by vlad.dancer: Undefined array key "#form_id" in...

Closed Issue #3349191 by vlad.dancer: Undefined array key "#form_id" in...
4 unresolved threads
4 unresolved threads

Issue #3349191 by vlad.dancer: Undefined array key "#form_id" in layout_builder_styles.module on line 17

Closes #3349191

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
14 14 *
15 15 * Modify the configuration form for layout builder components (blocks).
16 16 */
17 function layout_builder_styles_form_alter(&$form, FormStateInterface $formState) {
18 if ($form['#form_id'] === 'layout_builder_add_block' || $form['#form_id'] === 'layout_builder_update_block') {
17 function layout_builder_styles_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  • 14 14 *
    15 15 * Modify the configuration form for layout builder components (blocks).
    16 16 */
    17 function layout_builder_styles_form_alter(&$form, FormStateInterface $formState) {
    18 if ($form['#form_id'] === 'layout_builder_add_block' || $form['#form_id'] === 'layout_builder_update_block') {
    17 function layout_builder_styles_form_alter(&$form, FormStateInterface $form_state, $form_id) {
    18
    19 if ($formId == 'layout_builder_add_block' || $formId == 'layout_builder_update_block') {
  • 14 14 *
    15 15 * Modify the configuration form for layout builder components (blocks).
    16 16 */
    17 function layout_builder_styles_form_alter(&$form, FormStateInterface $formState) {
    18 if ($form['#form_id'] === 'layout_builder_add_block' || $form['#form_id'] === 'layout_builder_update_block') {
    17 function layout_builder_styles_form_alter(&$form, FormStateInterface $form_state, $form_id) {
    18
    19 if ($formId == 'layout_builder_add_block' || $formId == 'layout_builder_update_block') {
    19 20 /** @var \Drupal\layout_builder\Form\ConfigureBlockFormBase $formObject */
    20 21 $formObject = $formState->getFormObject();
  • 14 14 *
    15 15 * Modify the configuration form for layout builder components (blocks).
    16 16 */
    17 function layout_builder_styles_form_alter(&$form, FormStateInterface $formState) {
    18 if ($form['#form_id'] === 'layout_builder_add_block' || $form['#form_id'] === 'layout_builder_update_block') {
    17 function layout_builder_styles_form_alter(&$form, FormStateInterface $form_state, $form_id) {
    18
    19 if ($formId == 'layout_builder_add_block' || $formId == 'layout_builder_update_block') {
  • Needs work.

  • closed

  • Please register or sign in to reply
    Loading