Test entity translation controller.
Expanded class hierarchy of EntityTranslationControllerNG
class EntityTranslationControllerNG extends EntityTranslationController {
/**
* Overrides \Drupal\translation_entity\EntityTranslationController::getAccess().
*/
public function getAccess(EntityInterface $entity, $op) {
return $entity
->access($op);
}
/**
* Overrides \Drupal\translation_entity\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 |
---|---|---|---|---|
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:: |
4 |
EntityTranslationController:: |
function | Form submission handler for EntityTranslationController::entityFormAlter(). | ||
EntityTranslationController:: |
function | Form submission handler for EntityTranslationController::entityFormAlter(). | ||
EntityTranslationController:: |
public | function | Entity builder method. | 1 |
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. | 3 |
EntityTranslationController:: |
function | Form validation handler for EntityTranslationController::entityFormAlter(). | ||
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. | |
EntityTranslationControllerNG:: |
public | function |
Overrides \Drupal\translation_entity\EntityTranslationController::getAccess(). Overrides EntityTranslationController:: |
1 |
EntityTranslationControllerNG:: |
public | function |
Overrides \Drupal\translation_entity\EntityTranslationControllerInterface::removeTranslation(). Overrides EntityTranslationController:: |