Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RenderCallbackInterface.php

interface RenderCallbackInterface

Indicates all public methods are safe to use in render callbacks.

This should only be used when all public methods on the class are supposed to used as render callbacks or the class implements ElementInterface. If this is not the case then use TrustedCallbackInterface instead.

Hierarchy

  • interface \Drupal\Core\Render\Element\RenderCallbackInterface

Expanded class hierarchy of RenderCallbackInterface

All classes that implement RenderCallbackInterface

See also

\Drupal\Core\Render\Element\ElementInterface

\Drupal\Core\Security\TrustedCallbackInterface

\Drupal\Core\Render\Renderer::doCallback()

3 files declare their use of RenderCallbackInterface
HistoryRenderCallback.php in core/modules/history/src/HistoryRenderCallback.php
RenderCallbackRule.php in vendor/mglaman/phpstan-drupal/src/Rules/Drupal/RenderCallbackRule.php
Renderer.php in core/lib/Drupal/Core/Render/Renderer.php

File

core/lib/Drupal/Core/Render/Element/RenderCallbackInterface.php, line 16

Namespace

Drupal\Core\Render\Element
View source
interface RenderCallbackInterface {

}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal