You are here

public function TestCohesionLayout::getTwig in Lingotek Translation 3.3.x

Same name and namespace in other branches
  1. 4.0.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
  2. 3.4.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
  3. 3.5.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
  4. 3.6.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
  5. 3.7.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout::getTwig()
  6. 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\Entity

Code

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;
}