Skip to content
Snippets Groups Projects
Commit 09c541a2 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1790964 by anzi31, dawehner, xjm, tim.plunkett: Document that...

Issue #1790964 by anzi31, dawehner, xjm, tim.plunkett: Document that ViewExecutable::preview() doesn't call ViewExecutable::access().
parent 9341f7a2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1384,6 +1384,11 @@ public function executeDisplay($display_id = NULL, $args = array()) {
* To be called externally, probably by an AJAX handler of some flavor.
* Can also be called when views are embedded, as this guarantees
* normalized output.
*
* This function does not do any access checks on the view. It is the
* responsibility of the caller to check $view->access() or implement other
* access logic. To render the view normally with access checks, use
* views_embed_view() instead.
*/
public function preview($display_id = NULL, $args = array()) {
if (empty($this->current_display) || ((!empty($display_id)) && $this->current_display != $display_id)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment