public static function BlockViewBuilder::trustedCallbacks in Drupal 10
Same name and namespace in other branches
- 8 core/modules/block/src/BlockViewBuilder.php \Drupal\block\BlockViewBuilder::trustedCallbacks()
- 9 core/modules/block/src/BlockViewBuilder.php \Drupal\block\BlockViewBuilder::trustedCallbacks()
Lists the trusted callbacks provided by the implementing class.
Trusted callbacks are public methods on the implementing class and can be invoked via \Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback().
Return value
string[] List of method names implemented by the class that can be used as trusted callbacks.
Overrides EntityViewBuilder::trustedCallbacks
See also
\Drupal\Core\Security\DoTrustedCallbackTrait::doTrustedCallback()
File
- core/
modules/ block/ src/ BlockViewBuilder.php, line 142
Class
- BlockViewBuilder
- Provides a Block view builder.
Namespace
Drupal\blockCode
public static function trustedCallbacks() {
return [
'preRender',
'lazyBuilder',
];
}