class TestCohesionLayout 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
- 3.4.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout
- 3.5.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout
- 3.6.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout
- 3.7.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout
- 3.8.x tests/modules/lingotek_cohesion_test/src/Entity/TestCohesionLayout.php \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout
CohesionLayout class override for rendering values for tests.
@package Drupal\lingotek_cohesion_test\Entity
Hierarchy
- class \Drupal\lingotek_cohesion_test\Entity\TestCohesionLayout extends \Drupal\cohesion_elements\Entity\CohesionLayout
Expanded class hierarchy of TestCohesionLayout
File
- tests/
modules/ lingotek_cohesion_test/ src/ Entity/ TestCohesionLayout.php, line 12
Namespace
Drupal\lingotek_cohesion_test\EntityView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestCohesionLayout:: |
public | function |