You are here

public function BackLinkBlock::blockForm in Opigno Learning path 3.x

Overrides BlockPluginTrait::blockForm

File

src/Plugin/Block/BackLinkBlock.php, line 54

Class

BackLinkBlock
Provides a backlinkblock block.

Namespace

Drupal\opigno_learning_path\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  $config = $this->configuration;
  $form['js_button'] = [
    '#type' => 'textarea',
    '#title' => $this
      ->t('Breadcrumbs routes'),
    '#default_value' => $config['js_button'],
  ];
  return $form;
}