TestCohesionLayout.php in Lingotek Translation 3.6.x
Same filename and directory in other branches
- 4.0.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php
- 3.3.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php
- 3.4.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php
- 3.5.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php
- 3.7.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php
- 3.8.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php
Namespace
Drupal\lingotek_cohesion_test\EntityFile
tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.phpView source
<?php
namespace Drupal\lingotek_cohesion_test\Entity;
use Drupal\cohesion_elements\Entity\CohesionLayout;
/**
* CohesionLayout class override for rendering values for tests.
*
* @package Drupal\lingotek_cohesion_test\Entity
*/
class TestCohesionLayout extends CohesionLayout {
/**
* {@inheritdoc}
*/
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;
}
}
Classes
Name | Description |
---|---|
TestCohesionLayout | CohesionLayout class override for rendering values for tests. |