public function AmpSystemBrandingBlock::blockForm in Accelerated Mobile Pages (AMP) 8.3
Overrides SystemBrandingBlock::blockForm
File
- src/
Plugin/ Block/ AmpSystemBrandingBlock.php, line 34
Class
- AmpSystemBrandingBlock
- Provides a block to display 'Site branding' elements.
Namespace
Drupal\amp\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form = parent::blockForm($form, $form_state);
$form['block_branding']['logo_width'] = [
'#type' => 'textfield',
'#title' => $this
->t('Site logo width'),
'#default_value' => $this->configuration['logo_width'],
'#required' => TRUE,
];
$form['block_branding']['logo_height'] = [
'#type' => 'textfield',
'#title' => $this
->t('Site logo height'),
'#default_value' => $this->configuration['logo_height'],
'#required' => TRUE,
];
return $form;
}