function ExampleRenderable::toRenderable
Returns a render array representation of the object.
Return value
mixed[] A render array.
Overrides RenderableInterface::toRenderable
File
- 
              core/modules/ system/ tests/ modules/ twig_theme_test/ src/ ExampleRenderable.php, line 15 
Class
- ExampleRenderable
- Provides an example implementation of the RenderableInterface.
Namespace
Drupal\twig_theme_testCode
public function toRenderable() {
  return [
    '#markup' => 'Example markup',
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
