You are here

public function ViewsMegarowLinkEdit::preRenderCustomForm in Views Megarow 8

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

src/Plugin/views/field/ViewsMegarowLinkEdit.php, line 96

Class

ViewsMegarowLinkEdit
Field handler to present a link node edit.

Namespace

Drupal\views_megarow\Plugin\views\field

Code

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