Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsBlockBase.php

function ViewsBlockBase::blockSubmit

Overrides BlockPluginTrait::blockSubmit

2 calls to ViewsBlockBase::blockSubmit()
ViewsBlock::blockSubmit in core/modules/views/src/Plugin/Block/ViewsBlock.php
ViewsBlock::blockSubmit in core/modules/views/src/Plugin/Block/ViewsBlock.php
1 method overrides ViewsBlockBase::blockSubmit()
ViewsBlock::blockSubmit in core/modules/views/src/Plugin/Block/ViewsBlock.php

File

core/modules/views/src/Plugin/Block/ViewsBlockBase.php, line 182

Class

ViewsBlockBase
Base class for Views block plugins.

Namespace

Drupal\views\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
    if (!$form_state->isValueEmpty('views_label_checkbox')) {
        $this->configuration['views_label'] = $form_state->getValue('views_label');
    }
    else {
        $this->configuration['views_label'] = '';
    }
    $form_state->unsetValue('views_label_checkbox');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal