public function Custom::preRender

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

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/Custom.php, line 58
Definition of 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\field

Code

public function preRender($form) {
  $form['text'] = $form['alter']['text'];
  $form['help'] = $form['alter']['help'];
  unset($form['alter']['text']);
  unset($form['alter']['help']);
  return $form;
}