class ExampleRenderable in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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 15 - Contains \Drupal\twig_theme_test\ExampleRenderable.
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:: |