function EntityView::blockSubmit
Same name in other branches
- 8.x-3.x src/Plugin/Block/EntityView.php \Drupal\ctools\Plugin\Block\EntityView::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
-
src/
Plugin/ Block/ EntityView.php, line 98
Class
- EntityView
- Provides a block to view a specific entity.
Namespace
Drupal\ctools\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['view_mode'] = $form_state->getValue('view_mode');
}