public function LiveWeatherForm::buildForm in Live Weather 8
Same name and namespace in other branches
- 8.2 src/Form/LiveWeatherForm.php \Drupal\live_weather\Form\LiveWeatherForm::buildForm()
Implements \Drupal\Core\Form\FormInterface::buildForm().
Overrides ConfigFormBase::buildForm
File
- src/
Form/ LiveWeatherForm.php, line 75 - Contains \Drupal\live_weather\Form\LiveWeatherForm.
Class
- LiveWeatherForm
- Controller location for Live Weather Form.
Namespace
Drupal\live_weather\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['location'] = array(
'#type' => 'textfield',
'#title' => 'Location',
'#description' => t('Enter Where On Earth IDentification of location. Find WOEID to use this url http://woeid.rosselliot.co.nz'),
);
return parent::buildForm($form, $form_state);
}