You are here

public function MenuMultilingualBlockTrait::blockSubmit in Menu Multilingual 8

File

src/Plugin/Block/MenuMultilingualBlockTrait.php, line 52

Class

MenuMultilingualBlockTrait
Create admin users.

Namespace

Drupal\menu_multilingual\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $this->configuration['only_translated_labels'] = $form_state
    ->getValue('only_translated_labels');
  $this->configuration['only_translated_content'] = $form_state
    ->getValue('only_translated_content');
}