ContentTranslationDeleteForm

Delete translation form for content_translation module. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase i

ContentTranslationController::__construct

public ContentTranslationController::__construct(ContentTranslationManagerInterface $manager) Initializes a content translation controller. Parameters \Drupal\content_translation\ContentTranslationManagerInterface $manager: A content translation manager instance. File core/modules/content_translation/src/Controller/ContentTranslationController.php, line 32 Class ContentTranslationController Base class for entity translation controllers. Namespace Drupal\content_translation\Controller

ContentTranslationController::prepareTranslation

public ContentTranslationController::prepareTranslation(ContentEntityInterface $entity, LanguageInterface $source, LanguageInterface $target) Populates target values with the source values. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity being translated. \Drupal\Core\Language\LanguageInterface $source: The language to be used as source. \Drupal\Core\Language\LanguageInterface $target: The language to be used as target. File core/modules/content_translation/src/Contro

ContentTranslationController::overview

public ContentTranslationController::overview(RouteMatchInterface $route_match, $entity_type_id = NULL) Builds the translations overview page. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. string $entity_type_id: (optional) The entity type ID. Return value array Array of page elements to render. File core/modules/content_translation/src/Controller/ContentTranslationController.php, line 83 Class ContentTranslationController Base class for entity transl

ContentTranslationController::edit

public ContentTranslationController::edit(LanguageInterface $language, RouteMatchInterface $route_match, $entity_type_id = NULL) Builds the edit translation page. Parameters \Drupal\Core\Language\LanguageInterface $language: The language of the translated values. Defaults to the current content language. \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object from which to extract the entity type. string $entity_type_id: (optional) The entity type ID. Return value array

ContentTranslationController::create

public static ContentTranslationController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container:

ContentTranslationController::add

public ContentTranslationController::add(LanguageInterface $source, LanguageInterface $target, RouteMatchInterface $route_match, $entity_type_id = NULL) Builds an add translation page. Parameters \Drupal\Core\Language\LanguageInterface $source: The language of the values being translated. Defaults to the entity language. \Drupal\Core\Language\LanguageInterface $target: The language of the translated values. Defaults to the current content language. \Drupal\Core\Routing\RouteMatchInterface $rou

ContentTranslationController::$manager

The content translation manager. Type: \Drupal\content_translation\ContentTranslationManagerInterface File core/modules/content_translation/src/Controller/ContentTranslationController.php, line 24 Class ContentTranslationController Base class for entity translation controllers. Namespace Drupal\content_translation\Controller Code protected $manager;

ContentTranslationController

Base class for entity translation controllers. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\content_translation\Controller\ContentTranslationController File core/modules/content_translation/src/Controller/ContentTranslationController.php, line 17 Namespace Drupal\content_translation\Controller Members Name Mod

ContentPreprocess::__construct

public ContentPreprocess::__construct(RouteMatchInterface $route_match) Constructor. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: Current route match service. File core/modules/content_moderation/src/ContentPreprocess.php, line 28 Class ContentPreprocess Determines whether a route is the "Latest version" tab of a node. Namespace Drupal\content_moderation Code public function __construct(RouteMatchInterface $route_match) { $this->routeMatch = $route_match; }