function NodeViewBuilder::trustedCallbacks

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

Overrides EntityViewBuilder::trustedCallbacks

File

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

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.