FormBuilder::renderPlaceholderFormAction

public FormBuilder::renderPlaceholderFormAction()

#lazy_builder callback; renders a form action URL.

Return value

array A renderable array representing the form action.

File

core/lib/Drupal/Core/Form/FormBuilder.php, line 643

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

public function renderPlaceholderFormAction() {
  return [
    '#type' => 'markup',
    '#markup' => $this->buildFormAction(),
    '#cache' => ['contexts' => ['url.path', 'url.query_args']],
  ];
}
doc_Drupal
2016-10-29 09:15:26
Comments
Leave a Comment

Please login to continue.