Test entity translation controller.
Expanded class hierarchy of EntityTestTranslationController
class EntityTestTranslationController extends EntityTranslationController {
/**
* Overrides EntityTranslationControllerInterface::removeTranslation().
*/
public function removeTranslation(EntityInterface $entity, $langcode) {
$translation = $entity
->getTranslation($langcode);
foreach ($translation
->getPropertyDefinitions() as $property_name => $langcode) {
$translation->{$property_name} = array();
}
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityTestTranslationController:: |
public | function |
Overrides EntityTranslationControllerInterface::removeTranslation(). Overrides EntityTranslationController:: |
|
EntityTranslationController:: |
protected | property | The entity info of the entity being translated. | |
EntityTranslationController:: |
protected | property | The type of the entity being translated. | |
EntityTranslationController:: |
protected | function | Adds a clue about the form element translatability. | |
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::entityFormAlter(). Overrides EntityTranslationControllerInterface:: |
3 |
EntityTranslationController:: |
function | Form submission handler for EntityTranslationController::entityFormAlter(). | ||
EntityTranslationController:: |
function | Form submission handler for EntityTranslationController::entityFormAlter(). | ||
EntityTranslationController:: |
public | function | Entity builder method. | |
EntityTranslationController:: |
public | function | Process callback: Determines which elements get clue in the form. | |
EntityTranslationController:: |
public | function | Form submission handler for EntityTranslationController::entityFormAlter(). | |
EntityTranslationController:: |
protected | function | Returns the title to be used for the entity form page. | 2 |
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::getAccess(). Overrides EntityTranslationControllerInterface:: |
1 |
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::getBasePath(). Overrides EntityTranslationControllerInterface:: |
|
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::getEditPath(). Overrides EntityTranslationControllerInterface:: |
|
EntityTranslationController:: |
protected | function | Returns an instance of the given path. | |
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::getSourceLanguage(). Overrides EntityTranslationControllerInterface:: |
|
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::getTranslationAccess(). Overrides EntityTranslationControllerInterface:: |
|
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::getViewPath(). Overrides EntityTranslationControllerInterface:: |
|
EntityTranslationController:: |
public | function |
Implements EntityTranslationControllerInterface::retranslate(). Overrides EntityTranslationControllerInterface:: |
|
EntityTranslationController:: |
public | function | Initializes an instance of the entity translation controller. |