Defines the translation handler for custom blocks.
Hierarchy
- class \Drupal\content_translation\ContentTranslationHandler implements ContentTranslationHandlerInterface, EntityHandlerInterface uses DependencySerializationTrait
- class \Drupal\block_content\BlockContentTranslationHandler
File
- core/modules/block_content/src/BlockContentTranslationHandler.php, line 13
Namespace
Drupal\block_content
Members
Name | Modifiers | Type | Description |
---|---|---|---|
BlockContentTranslationHandler::entityFormAlter | public | function | Performs the needed alterations to the entity form. Overrides ContentTranslationHandler::entityFormAlter |
BlockContentTranslationHandler::entityFormTitle | protected | function | Returns the title to be used for the entity form page. Overrides ContentTranslationHandler::entityFormTitle |
ContentTranslationHandler::$currentUser | protected | property | The current user. |
ContentTranslationHandler::$entityType | protected | property | Information about the entity type. |
ContentTranslationHandler::$entityTypeId | protected | property | The type of the entity being translated. |
ContentTranslationHandler::$fieldStorageDefinitions | protected | property | The array of installed field storage definitions for the entity type, keyed by field name. |
ContentTranslationHandler::$languageManager | protected | property | The language manager. |
ContentTranslationHandler::$manager | protected | property | The content translation manager. |
ContentTranslationHandler::addTranslatabilityClue | protected | function | Adds a clue about the form element translatability. |
ContentTranslationHandler::checkFieldStorageDefinitionTranslatability | protected | function | Checks the field storage definition for translatability support. |
ContentTranslationHandler::createInstance | public static | function | Instantiates a new instance of this entity handler. Overrides EntityHandlerInterface::createInstance |
ContentTranslationHandler::entityFormDelete | function | Form submission handler for ContentTranslationHandler::entityFormAlter(). | |
ContentTranslationHandler::entityFormDeleteTranslation | function | Form submission handler for ContentTranslationHandler::entityFormAlter(). | |
ContentTranslationHandler::entityFormEntityBuild | public | function | Entity builder method. |
ContentTranslationHandler::entityFormSharedElements | public | function | Process callback: determines which elements get clue in the form. |
ContentTranslationHandler::entityFormSourceChange | public | function | Form submission handler for ContentTranslationHandler::entityFormAlter(). |
ContentTranslationHandler::entityFormSubmit | function | Form submission handler for ContentTranslationHandler::entityFormAlter(). | |
ContentTranslationHandler::entityFormValidate | function | Form validation handler for ContentTranslationHandler::entityFormAlter(). | |
ContentTranslationHandler::getDefaultOwnerId | public static | function | Default value callback for the owner base field definition. |
ContentTranslationHandler::getFieldDefinitions | public | function | Returns a set of field definitions to be used to store metadata items. Overrides ContentTranslationHandlerInterface::getFieldDefinitions |
ContentTranslationHandler::getSourceLangcode | public | function | Retrieves the source language for the translation being created. Overrides ContentTranslationHandlerInterface::getSourceLangcode |
ContentTranslationHandler::getTranslationAccess | public | function | Checks if the user can perform the given operation on translations of the wrapped entity. Overrides ContentTranslationHandlerInterface::getTranslationAccess |
ContentTranslationHandler::hasAuthor | protected | function | Checks whether the entity type supports author natively. |
ContentTranslationHandler::hasChangedTime | protected | function | Checks whether the entity type supports modification time natively. |
ContentTranslationHandler::hasCreatedTime | protected | function | Checks whether the entity type supports creation time natively. |
ContentTranslationHandler::hasPublishedStatus | protected | function | Checks whether the entity type supports published status natively. |
ContentTranslationHandler::retranslate | public | function | Marks translations as outdated. Overrides ContentTranslationHandlerInterface::retranslate |
ContentTranslationHandler::__construct | public | function | Initializes an instance of the content translation controller. |
DependencySerializationTrait::$_serviceIds | protected | property | An array of service IDs keyed by property name used for serialization. |
DependencySerializationTrait::__sleep | public | function | |
DependencySerializationTrait::__wakeup | public | function |
Please login to continue.