ContextAwareVariantInterface::setContexts

public ContextAwareVariantInterface::setContexts(array $contexts) Sets the context values for this display variant. Parameters \Drupal\Component\Plugin\Context\ContextInterface[] $contexts: An array of contexts, keyed by context name. Return value $this File core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php, line 26 Class ContextAwareVariantInterface Provides an interface for variant plugins that are context-aware. Namespace Drupal\Core\Display Code public function setCon

ContextAwareVariantInterface::getContexts

public ContextAwareVariantInterface::getContexts() Gets the values for all defined contexts. Return value \Drupal\Component\Plugin\Context\ContextInterface[] An array of set contexts, keyed by context name. File core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php, line 16 Class ContextAwareVariantInterface Provides an interface for variant plugins that are context-aware. Namespace Drupal\Core\Display Code public function getContexts();

ContextAwareVariantInterface

Provides an interface for variant plugins that are context-aware. Hierarchy interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurablePluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Core\Cache\RefinableCacheableDependencyInterfaceinterface \Drupal\Core\Display\VariantInterfaceinterface \Drupal\Core\Display\ContextAwareVariantInterface File core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php,

content_translation_views_data_alter

content_translation_views_data_alter(array &$data) Implements hook_views_data_alter(). File core/modules/content_translation/content_translation.module, line 241 Allows entities to be translated into different languages. Code function content_translation_views_data_alter(array &$data) { // Add the content translation entity link definition to Views data for entity // types having translation enabled. $entity_types = \Drupal::entityManager()->getDefinitions(); /** @var \Drup

content_translation_translate_access

content_translation_translate_access(EntityInterface $entity) Access callback for the translation overview page. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity whose translation overview should be displayed. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/content_translation/content_translation.module, line 280 Allows entities to be translated into different languages. Code function content_translation_translate_access(EntityIn

content_translation_preprocess_language_content_settings_table

content_translation_preprocess_language_content_settings_table(&$variables) Implements hook_preprocess_HOOK() for language-content-settings-table.html.twig. File core/modules/content_translation/content_translation.module, line 552 Allows entities to be translated into different languages. Code function content_translation_preprocess_language_content_settings_table(&$variables) { module_load_include('inc', 'content_translation', 'content_translation.admin'); _content_translation_p

content_translation_page_attachments

content_translation_page_attachments(&$page) Implements hook_page_attachments(). File core/modules/content_translation/content_translation.module, line 560 Allows entities to be translated into different languages. Code function content_translation_page_attachments(&$page) { $route_match = \Drupal::routeMatch(); // If the current route has no parameters, return. if (!($route = $route_match->getRouteObject()) || !($parameters = $route->getOption('parameters'))) { retur

content_translation_module_implements_alter

content_translation_module_implements_alter(&$implementations, $hook) Implements hook_module_implements_alter(). File core/modules/content_translation/content_translation.module, line 54 Allows entities to be translated into different languages. Code function content_translation_module_implements_alter(&$implementations, $hook) { switch ($hook) { // Move our hook_entity_type_alter() implementation to the end of the list. case 'entity_type_alter': $group = $implementati

content_translation_menu_links_discovered_alter

content_translation_menu_links_discovered_alter(array &$links) Implements hook_menu_links_discovered_alter(). File core/modules/content_translation/content_translation.module, line 265 Allows entities to be translated into different languages. Code function content_translation_menu_links_discovered_alter(array &$links) { // Clarify where translation settings are located. $links['language.content_settings_page']['title'] = new TranslatableMarkup('Content language and translation');

content_translation_language_types_info_alter

content_translation_language_types_info_alter(array &$language_types) Implements hook_language_type_info_alter(). File core/modules/content_translation/content_translation.module, line 68 Allows entities to be translated into different languages. Code function content_translation_language_types_info_alter(array &$language_types) { // Make content language negotiation configurable by removing the 'locked' // flag. $language_types[LanguageInterface::TYPE_CONTENT]['locked'] = FALSE