public function TestCohesionLayout::getTwig in Lingotek Translation 4.0.x
Same name and namespace in other branches
- 3.3.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
- 3.4.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
- 3.5.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
- 3.6.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
- 3.7.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
- 3.8.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
File
- tests/
modules/ lingotek_cohesion_test/ src/ Entity/ TestCohesionLayout.php, line 17
Class
- TestCohesionLayout
- CohesionLayout class override for rendering values for tests.
Namespace
Drupal\lingotek_cohesion_test\EntityCode
public function getTwig($theme = 'current') {
// Just render the contents, we don't care about formatting.
return 'JSON: ' . $this
->getJsonValues() . PHP_EOL . 'ID: ' . $this
->id() . PHP_EOL . 'LANGCODE: ' . $this
->language()
->getId() . PHP_EOL;
}