public function FormBuilder::renderPlaceholderFormAction in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::renderPlaceholderFormAction()
- 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::renderPlaceholderFormAction()
Renders a form action URL. It's a #lazy_builder callback.
Return value
array A renderable array representing the form action.
File
- core/
lib/ Drupal/ Core/ Form/ FormBuilder.php, line 650
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',
],
],
];
}