Remove useless variables in buildBehaviorForm()

Created on 28 January 2023, almost 2 years 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.71.5 2024