function views_pre_render_views_form_views_form

Replaces views substitution placeholders.

Parameters

array $element: An associative array containing the properties of the element. Properties used: #substitutions, #children.

Return value

array The $element with prepared variables ready for #theme 'form' in views_form_views_form.

Deprecated

in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\views\Form\ViewsFormMainForm::preRenderViewsForm() instead.

See also

https://www.drupal.org/node/2966725

1 call to views_pre_render_views_form_views_form()
ViewsHooksTest::testViewsPreRenderViewsFormViewsForm in core/modules/views/tests/src/Kernel/ViewsHooksTest.php
Tests views_pre_render_views_form_views_form() deprecation.

File

core/modules/views/views.module, line 637

Code

function views_pre_render_views_form_views_form($element) {
    @trigger_error('views_pre_render_views_form_views_form() is deprecated in Drupal 8.8.0 and will be removed before Drupal 9.0.0. Use \\Drupal\\views\\Form\\ViewsFormMainForm::preRenderViewsForm() instead. See https://www.drupal.org/node/2966725', E_USER_DEPRECATED);
    return ViewsFormMainForm::preRenderViewsForm($element);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.