public function TagForm::ajaxPreview in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x src/Form/TagForm.php \Drupal\xbbcode\Form\TagForm::ajaxPreview()
Return the code preview for asynchronous rendering.
Parameters
array $form: The form array.
Return value
array The sub-array of the preview field.
File
- src/
Form/ TagForm.php, line 100
Class
- TagForm
- Base form for creating and editing custom tags.
Namespace
Drupal\xbbcode\FormCode
public function ajaxPreview(array $form) : array {
return $form['preview']['code'];
}