public function FormBuilder::renderPlaceholderFormAction in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\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 646 - Contains \Drupal\Core\Form\FormBuilder.
Class
- FormBuilder
- Provides form building and processing.
Namespace
Drupal\Core\FormCode
public function renderPlaceholderFormAction() {
return [
'#type' => 'markup',
'#markup' => $this
->buildFormAction(),
'#cache' => [
'contexts' => [
'url.path',
'url.query_args',
],
],
];
}