function views_ui_contextual_links_suppress_push

Same name and namespace in other branches
  1. 10 core/modules/views_ui/views_ui.module \views_ui_contextual_links_suppress_push()
  2. 9 core/modules/views_ui/views_ui.module \views_ui_contextual_links_suppress_push()
  3. 8.9.x core/modules/views_ui/views_ui.module \views_ui_contextual_links_suppress_push()
  4. main core/modules/views_ui/views_ui.module \views_ui_contextual_links_suppress_push()

Increments the views_ui_contextual_links_suppress() static variable.

When this function is added to the #pre_render of an element, and 'views_ui_contextual_links_suppress_pop' is added to the #post_render of the same element, then all contextual links within the element and its descendants are suppressed from being rendered. This is used, for example, during a View preview, when it is not desired for nodes in the Views result to have contextual links.

Deprecated

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

See also

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

File

core/modules/views_ui/views_ui.module, line 141

Code

function views_ui_contextual_links_suppress_push() : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3039250', E_USER_DEPRECATED);
}

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