function SystemBrandingBlock::blockSubmit
Same name in other branches
- 8.9.x core/modules/system/src/Plugin/Block/SystemBrandingBlock.php \Drupal\system\Plugin\Block\SystemBrandingBlock::blockSubmit()
- 10 core/modules/system/src/Plugin/Block/SystemBrandingBlock.php \Drupal\system\Plugin\Block\SystemBrandingBlock::blockSubmit()
- 11.x core/modules/system/src/Plugin/Block/SystemBrandingBlock.php \Drupal\system\Plugin\Block\SystemBrandingBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
-
core/
modules/ system/ src/ Plugin/ Block/ SystemBrandingBlock.php, line 140
Class
- SystemBrandingBlock
- Provides a block to display 'Site branding' elements.
Namespace
Drupal\system\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$block_branding = $form_state->getValue('block_branding');
$this->configuration['use_site_logo'] = $block_branding['use_site_logo'];
$this->configuration['use_site_name'] = $block_branding['use_site_name'];
$this->configuration['use_site_slogan'] = $block_branding['use_site_slogan'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.