class ExampleRenderable in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/twig_theme_test/src/ExampleRenderable.php \Drupal\twig_theme_test\ExampleRenderable
- 9 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 RenderableInterface
Expanded class hierarchy of ExampleRenderable
File
- core/
modules/ system/ tests/ modules/ twig_theme_test/ src/ ExampleRenderable.php, line 10
Namespace
Drupal\twig_theme_testView source
class ExampleRenderable implements RenderableInterface {
/**
* {@inheritdoc}
*/
public function toRenderable() {
return [
'#markup' => 'Example markup',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExampleRenderable:: |
public | function |
Returns a render array representation of the object. Overrides RenderableInterface:: |