class ExampleRenderable
Same name in other branches
- 9 core/modules/system/tests/modules/twig_theme_test/src/ExampleRenderable.php \Drupal\twig_theme_test\ExampleRenderable
- 8.9.x core/modules/system/tests/modules/twig_theme_test/src/ExampleRenderable.php \Drupal\twig_theme_test\ExampleRenderable
- 10 core/modules/system/tests/modules/twig_theme_test/src/ExampleRenderable.php \Drupal\twig_theme_test\ExampleRenderable
Provides an example implementation of the RenderableInterface.
Hierarchy
- class \Drupal\twig_theme_test\ExampleRenderable implements \Drupal\Core\Render\RenderableInterface
Expanded class hierarchy of ExampleRenderable
File
-
core/
modules/ system/ tests/ modules/ twig_theme_test/ src/ ExampleRenderable.php, line 12
Namespace
Drupal\twig_theme_testView source
class ExampleRenderable implements RenderableInterface {
/**
* {@inheritdoc}
*/
public function toRenderable() {
return [
'#markup' => 'Example markup',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ExampleRenderable::toRenderable | public | function | Overrides RenderableInterface::toRenderable |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.