function EntityView::blockSubmit

Same name and namespace in other branches
  1. 4.0.x src/Plugin/Block/EntityView.php \Drupal\ctools\Plugin\Block\EntityView::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/EntityView.php, line 103

Class

EntityView
Provides a block to view a specific entity.

Namespace

Drupal\ctools\Plugin\Block

Code

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