class CommentTranslationController

Defines the translation controller class for comments.

Hierarchy

Expanded class hierarchy of CommentTranslationController

File

drupal/core/modules/comment/lib/Drupal/comment/CommentTranslationController.php, line 17
Definition of Drupal\comment\CommentTranslationController.

Namespace

Drupal\comment
View source
class CommentTranslationController extends EntityTranslationController {

  /**
   * Overrides EntityTranslationController::entityFormTitle().
   */
  protected function entityFormTitle(EntityInterface $entity) {
    return t('Edit comment @subject', array(
      '@subject' => $entity
        ->label(),
    ));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CommentTranslationController::entityFormTitle protected function Overrides EntityTranslationController::entityFormTitle(). Overrides EntityTranslationController::entityFormTitle
EntityTranslationController::$entityInfo protected property The entity info of the entity being translated.
EntityTranslationController::$entityType protected property The type of the entity being translated.
EntityTranslationController::addTranslatabilityClue protected function Adds a clue about the form element translatability.
EntityTranslationController::entityFormAlter public function Implements EntityTranslationControllerInterface::entityFormAlter(). Overrides EntityTranslationControllerInterface::entityFormAlter 3
EntityTranslationController::entityFormDelete function Form submission handler for EntityTranslationController::entityFormAlter().
EntityTranslationController::entityFormDeleteTranslation function Form submission handler for EntityTranslationController::entityFormAlter().
EntityTranslationController::entityFormEntityBuild public function Entity builder method.
EntityTranslationController::entityFormSharedElements public function Process callback: Determines which elements get clue in the form.
EntityTranslationController::entityFormSourceChange public function Form submission handler for EntityTranslationController::entityFormAlter().
EntityTranslationController::getAccess public function Implements EntityTranslationControllerInterface::getAccess(). Overrides EntityTranslationControllerInterface::getAccess 1
EntityTranslationController::getBasePath public function Implements EntityTranslationControllerInterface::getBasePath(). Overrides EntityTranslationControllerInterface::getBasePath
EntityTranslationController::getEditPath public function Implements EntityTranslationControllerInterface::getEditPath(). Overrides EntityTranslationControllerInterface::getEditPath
EntityTranslationController::getPathInstance protected function Returns an instance of the given path.
EntityTranslationController::getSourceLangcode public function Implements EntityTranslationControllerInterface::getSourceLanguage(). Overrides EntityTranslationControllerInterface::getSourceLangcode
EntityTranslationController::getTranslationAccess public function Implements EntityTranslationControllerInterface::getTranslationAccess(). Overrides EntityTranslationControllerInterface::getTranslationAccess
EntityTranslationController::getViewPath public function Implements EntityTranslationControllerInterface::getViewPath(). Overrides EntityTranslationControllerInterface::getViewPath
EntityTranslationController::removeTranslation public function Implements EntityTranslationControllerInterface::removeTranslation(). Overrides EntityTranslationControllerInterface::removeTranslation 1
EntityTranslationController::retranslate public function Implements EntityTranslationControllerInterface::retranslate(). Overrides EntityTranslationControllerInterface::retranslate
EntityTranslationController::__construct public function Initializes an instance of the entity translation controller.