You are here

function _cms_content_sync_get_repository_name in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 cms_content_sync.module \_cms_content_sync_get_repository_name()
  2. 2.0.x cms_content_sync.module \_cms_content_sync_get_repository_name()

Name the manual pull tab and entity edit settings tab.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup

8 calls to _cms_content_sync_get_repository_name()
cms_content_sync_entity_delete in ./cms_content_sync.module
Push the entity deletion automatically if configured to do so.
cms_content_sync_local_tasks_alter in ./cms_content_sync.module
Implements hook_local_tasks_alter().
ContentDashboard::getDerivativeDefinitions in src/Plugin/Derivative/ContentDashboard.php
Gets the definition of all derivatives of a base plugin.
EntityStatus::getTitle in src/Plugin/Menu/LocalTask/EntityStatus.php
Returns the localized title to be shown for this tab.
PushChanges::pushChanges in src/Controller/PushChanges.php
Published entity to Sync Core.

... See full list

File

./cms_content_sync.module, line 2034
Module file for cms_content_sync.

Code

function _cms_content_sync_get_repository_name() {

  // @todo Distinguish between Syndication and Staging.
  //   If it's Content Staging, we name the settings tab "Content Staging" instead.
  return _cms_content_sync_is_cloud_version() ? t("Content Cloud") : t("Content Repository");
}