public function SearchApiTestService::configurationForm in Search API 7
Overrides SearchApiAbstractService::configurationForm().
Returns a single text field for testing purposes.
Overrides SearchApiAbstractService::configurationForm
File
- tests/
search_api_test.module, line 233 - Test functions and classes for testing the Search API.
Class
- SearchApiTestService
- Test service class.
Code
public function configurationForm(array $form, array &$form_state) {
$form = array(
'test' => array(
'#type' => 'textfield',
'#title' => 'Test option',
),
);
if (!empty($this->options)) {
$form['test']['#default_value'] = $this->options['test'];
}
return $form;
}