public function OembedProviderForm::ajaxCallback in oEmbed Providers 1.0.x
Same name and namespace in other branches
- 2.x src/OembedProviderForm.php \Drupal\oembed_providers\OembedProviderForm::ajaxCallback()
- 1.1.x src/OembedProviderForm.php \Drupal\oembed_providers\OembedProviderForm::ajaxCallback()
AJAX callback function.
Parameters
array $form: A nested array form elements comprising the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array An array of endpoints form elements.
File
- src/
OembedProviderForm.php, line 274
Class
- OembedProviderForm
- Form controller for the oEmbed provider edit/add forms.
Namespace
Drupal\oembed_providersCode
public function ajaxCallback(array &$form, FormStateInterface $form_state) {
return $form['endpoints'];
}