You are here

public function MenuBlockCurrentLanguage::blockForm in Menu block current language 8

Overrides SystemMenuBlock::blockForm

File

src/Plugin/Block/MenuBlockCurrentLanguage.php, line 127

Class

MenuBlockCurrentLanguage
Provides a generic Menu block.

Namespace

Drupal\menu_block_current_language\Plugin\Block

Code

public function blockForm($form, FormStateInterface $form_state) {
  $form = parent::blockForm($form, $form_state);
  $form['translation_providers'] = [
    '#type' => 'checkboxes',
    '#title' => $this
      ->t('Enabled Core link types'),
    '#options' => [
      'menu_link_content' => $this
        ->t('Menu link content'),
      'views' => $this
        ->t('Views'),
      'default' => $this
        ->t('String translation (Experimental)'),
    ],
    '#default_value' => $this->configuration['translation_providers'],
  ];
  return $form;
}