public function UrlsProperty::buildConfigurationForm in Search API Field Map 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/search_api/processor/Property/UrlsProperty.php \Drupal\search_api_field_map\Plugin\search_api\processor\Property\UrlsProperty::buildConfigurationForm()
- 8 src/Plugin/search_api/processor/Property/UrlsProperty.php \Drupal\search_api_field_map\Plugin\search_api\processor\Property\UrlsProperty::buildConfigurationForm()
- 4.x src/Plugin/search_api/processor/Property/UrlsProperty.php \Drupal\search_api_field_map\Plugin\search_api\processor\Property\UrlsProperty::buildConfigurationForm()
Constructs a configuration form for a field based on this property.
Parameters
\Drupal\search_api\Item\FieldInterface $field: The field for which the configuration form is constructed.
array $form: An associative array containing the initial structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the complete form.
Return value
array The form structure.
Overrides ConfigurablePropertyInterface::buildConfigurationForm
File
- src/
Plugin/ search_api/ processor/ Property/ UrlsProperty.php, line 32
Class
- UrlsProperty
- Defines a "Urls" property.
Namespace
Drupal\search_api_field_map\Plugin\search_api\processor\PropertyCode
public function buildConfigurationForm(FieldInterface $field, array $form, FormStateInterface $form_state) {
$form['#attached']['library'][] = 'search_api/drupal.search_api.admin_css';
$form['#tree'] = TRUE;
$form['field_data'] = [
'#type' => 'item',
'#title' => $this
->t('URLs'),
'#description' => $this
->t('URLs pointing to this node on all sites containing.'),
];
return $form;
}