public function ScannerAdminForm::getFieldsCallback in Search and Replace Scanner 8
AJAX callback for fetching the entity type fields.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array List of entity type fields.
File
- src/
Form/ ScannerAdminForm.php, line 222
Class
- ScannerAdminForm
- Form for configuring the default scanner settings.
Namespace
Drupal\scanner\FormCode
public function getFieldsCallback(array $form, FormStateInterface $form_state) {
return $form['fields_of_selected_content_type'];
}