Created
May 13, 2016 14:20
-
-
Save tanmayk/31580dd3a5d9b5f2e8a8c8dbd80a387f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function buildOptionsForm(&$form, FormStateInterface $form_state) { | |
parent::buildOptionsForm($form, $form_state); | |
$form['height'] = array( | |
'#type' => 'textfield', | |
'#title' => $this->t('Height'), | |
'#description' => $this->t('Default height of header.'), | |
'#size' => '6', | |
'#default_value' => $this->options['height'], | |
'#required' => TRUE, | |
'#field_suffix' => 'px', | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment