RenderCallbackInterface.php

Same filename in other branches
  1. 8.9.x core/lib/Drupal/Core/Render/Element/RenderCallbackInterface.php
  2. 10 core/lib/Drupal/Core/Render/Element/RenderCallbackInterface.php
  3. 11.x core/lib/Drupal/Core/Render/Element/RenderCallbackInterface.php

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/RenderCallbackInterface.php

View source
<?php

namespace Drupal\Core\Render\Element;


/**
 * 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.
 *
 * @see \Drupal\Core\Render\Element\ElementInterface
 * @see \Drupal\Core\Security\TrustedCallbackInterface
 * @see \Drupal\Core\Render\Renderer::doCallback()
 */
interface RenderCallbackInterface {

}

Interfaces

Title Deprecated Summary
RenderCallbackInterface Indicates all public methods are safe to use in render callbacks.

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