function BlockViewBuilder::trustedCallbacks

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

Overrides EntityViewBuilder::trustedCallbacks

File

core/modules/block/src/BlockViewBuilder.php, line 142

Class

BlockViewBuilder
Provides a Block view builder.

Namespace

Drupal\block

Code

public static function trustedCallbacks() {
    return [
        'preRender',
        'lazyBuilder',
    ];
}

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