function EntityViewBuilder::trustedCallbacks

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::trustedCallbacks()
  2. 10 core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::trustedCallbacks()
  3. 11.x core/lib/Drupal/Core/Entity/EntityViewBuilder.php \Drupal\Core\Entity\EntityViewBuilder::trustedCallbacks()

Overrides TrustedCallbackInterface::trustedCallbacks

1 call to EntityViewBuilder::trustedCallbacks()
NodeViewBuilder::trustedCallbacks in core/modules/node/src/NodeViewBuilder.php
Lists the trusted callbacks provided by the implementing class.
2 methods override EntityViewBuilder::trustedCallbacks()
BlockViewBuilder::trustedCallbacks in core/modules/block/src/BlockViewBuilder.php
Lists the trusted callbacks provided by the implementing class.
NodeViewBuilder::trustedCallbacks in core/modules/node/src/NodeViewBuilder.php
Lists the trusted callbacks provided by the implementing class.

File

core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 138

Class

EntityViewBuilder
Base class for entity view builders.

Namespace

Drupal\Core\Entity

Code

public static function trustedCallbacks() {
    return [
        'build',
        'buildMultiple',
    ];
}

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