public function Custom::preRenderCustomForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/field/Custom.php \Drupal\views\Plugin\views\field\Custom::preRenderCustomForm()
Prerender function to move the textarea to the top of a form.
Parameters
array $form: The form build array.
Return value
array The modified form build array.
File
- core/
modules/ views/ src/ Plugin/ views/ field/ Custom.php, line 80 - Contains \Drupal\views\Plugin\views\field\Custom.
Class
- Custom
- A handler to provide a field that is completely custom by the administrator.
Namespace
Drupal\views\Plugin\views\fieldCode
public function preRenderCustomForm($form) {
$form['text'] = $form['alter']['text'];
$form['help'] = $form['alter']['help'];
unset($form['alter']['text']);
unset($form['alter']['help']);
return $form;
}