content_translation_language_fallback_candidates_entity_view_alter

content_translation_language_fallback_candidates_entity_view_alter(&$candidates, $context) Implements hook_language_fallback_candidates_OPERATION_alter(). Performs language fallback for inaccessible translations. File core/modules/content_translation/content_translation.module, line 328 Allows entities to be translated into different languages. Code function content_translation_language_fallback_candidates_entity_view_alter(&$candidates, $context) { /** @var \Drupal\Core\Entity\Cont

content_translation_language_configuration_element_validate

content_translation_language_configuration_element_validate($element, FormStateInterface $form_state, array $form) Form validation handler for element added with content_translation_language_configuration_element_process(). Checks whether translation can be enabled: if language is set to one of the special languages and language selector is not hidden, translation cannot be enabled. See also content_translation_language_configuration_element_submit() File core/modules/content_translation/conte

content_translation_language_configuration_element_submit

content_translation_language_configuration_element_submit(array $form, FormStateInterface $form_state) Form submission handler for element added with content_translation_language_configuration_element_process(). Stores the content translation settings. See also content_translation_language_configuration_element_validate() File core/modules/content_translation/content_translation.module, line 529 Allows entities to be translated into different languages. Code function content_translation_lang

content_translation_language_configuration_element_process

content_translation_language_configuration_element_process(array $element, FormStateInterface $form_state, array &$form) Process callback: Expands the language_configuration form element. Parameters array $element: Form API element. Return value Processed language configuration element. File core/modules/content_translation/content_translation.module, line 471 Allows entities to be translated into different languages. Code function content_translation_language_configuration_element_proc

content_translation_install

content_translation_install() Implements hook_install(). File core/modules/content_translation/content_translation.install, line 13 Installation functions for Content Translation module. Code function content_translation_install() { // Assign a fairly low weight to ensure our implementation of // hook_module_implements_alter() is run among the last ones. module_set_weight('content_translation', 10); // Translation works when at least two languages are added. if (count(\Drupal::lang

content_translation_help

content_translation_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/content_translation/content_translation.module, line 21 Allows entities to be translated into different languages. Code function content_translation_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.content_translation': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t(

content_translation_form_language_content_settings_validate

content_translation_form_language_content_settings_validate(array $form, FormStateInterface $form_state) Form validation handler for content_translation_admin_settings_form(). See also content_translation_admin_settings_form_submit() File core/modules/content_translation/content_translation.admin.inc, line 289 The content translation administration forms. Code function content_translation_form_language_content_settings_validate(array $form, FormStateInterface $form_state) { $settings = &am

content_translation_form_language_content_settings_submit

content_translation_form_language_content_settings_submit(array $form, FormStateInterface $form_state) Form submission handler for content_translation_admin_settings_form(). See also content_translation_admin_settings_form_validate() File core/modules/content_translation/content_translation.admin.inc, line 319 The content translation administration forms. Code function content_translation_form_language_content_settings_submit(array $form, FormStateInterface $form_state) { $entity_types = $

content_translation_form_language_content_settings_form_alter

content_translation_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for language_content_settings_form(). File core/modules/content_translation/content_translation.module, line 544 Allows entities to be translated into different languages. Code function content_translation_form_language_content_settings_form_alter(array &$form, FormStateInterface $form_state) { module_load_include('inc', 'content_translatio

content_translation_form_field_config_edit_form_alter

content_translation_form_field_config_edit_form_alter(array &$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for 'field_config_edit_form'. File core/modules/content_translation/content_translation.module, line 373 Allows entities to be translated into different languages. Code function content_translation_form_field_config_edit_form_alter(array &$form, FormStateInterface $form_state) { $field = $form_state->getFormObject()->getEntity(); $bundle_is