function NodeViewBuilder::trustedCallbacks

Same name in other branches
  1. 8.9.x core/modules/node/src/NodeViewBuilder.php \Drupal\node\NodeViewBuilder::trustedCallbacks()
  2. 10 core/modules/node/src/NodeViewBuilder.php \Drupal\node\NodeViewBuilder::trustedCallbacks()
  3. 11.x core/modules/node/src/NodeViewBuilder.php \Drupal\node\NodeViewBuilder::trustedCallbacks()

Overrides EntityViewBuilder::trustedCallbacks

File

core/modules/node/src/NodeViewBuilder.php, line 154

Class

NodeViewBuilder
View builder handler for nodes.

Namespace

Drupal\node

Code

public static function trustedCallbacks() {
    $callbacks = parent::trustedCallbacks();
    $callbacks[] = 'renderLinks';
    return $callbacks;
}

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