Form constructor.
array $form: An associative array containing the structure of the form.
array $form_state: An associative array containing the current state of the form.
array The form structure.
Overrides ConfigurableActionInterface::form
public function form(array $form, array &$form_state) {
$form['url'] = array(
'#type' => 'textfield',
'#title' => t('URL'),
'#description' => t('The URL to which the user should be redirected. This can be an internal URL like node/1234 or an external URL like @url.', array(
'@url' => 'http://drupal.org',
)),
'#default_value' => $this->configuration['url'],
'#required' => TRUE,
);
return $form;
}