ExampleRenderable.php
Same filename in other branches
Namespace
Drupal\twig_theme_testFile
-
core/
modules/ system/ tests/ modules/ twig_theme_test/ src/ ExampleRenderable.php
View source
<?php
namespace Drupal\twig_theme_test;
use Drupal\Core\Render\RenderableInterface;
/**
* Provides an example implementation of the RenderableInterface.
*/
class ExampleRenderable implements RenderableInterface {
/**
* {@inheritdoc}
*/
public function toRenderable() {
return [
'#markup' => 'Example markup',
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ExampleRenderable | Provides an example implementation of the RenderableInterface. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.