Remove useless variables in buildBehaviorForm()

Created on 28 January 2023, over 1 year ago

Problem/Motivation

    // @TODO: these variables are useless and should be removed. Simplify code.
    $description = $this->t('You can manage Gridstack Optionsets here.');
    $management_page_route = 'entity.paragraphs_gridstack.list';

    $form['optionset'] = [
      '#type' => 'select',
      '#options' => $optionsets,
      '#default_value' => $paragraph->getBehaviorSetting($this->getPluginId(), 'optionset', 'paragraphs_gridstack.optionset.default'),
      '#title' => $this->t('Choose the Gridstack Optionset:'),
      '#description' => Link::createFromRoute($description, $management_page_route)->toRenderable(),
    ];
πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Panchuk Volyn, Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024