lingotek_cohesion_test.module in Lingotek Translation 3.3.x
Same filename and directory in other branches
- 4.0.x tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.module
- 3.4.x tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.module
- 3.5.x tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.module
- 3.6.x tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.module
- 3.7.x tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.module
- 3.8.x tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.module
Provides the foundations for testing Cohesion without having it installed.
File
tests/modules/lingotek_cohesion_test/lingotek_cohesion_test.moduleView source
<?php
/**
* @file
* Provides the foundations for testing Cohesion without having it installed.
*/
/**
* Implements hook_entity_type_build().
*
* Replace the entity class so we can override the output of twig.
*/
function lingotek_cohesion_test_entity_type_build(&$entity_types) {
if (isset($entity_types['cohesion_layout'])) {
$entity_types['cohesion_layout']
->setClass('Drupal\\lingotek_cohesion_test\\Entity\\TestCohesionLayout');
}
}
Functions
Name | Description |
---|---|
lingotek_cohesion_test_entity_type_build | Implements hook_entity_type_build(). |