You are here

function _cms_content_sync_get_repository_name in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x 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

6 calls to _cms_content_sync_get_repository_name()
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.
PushChanges::pushChanges in src/Controller/PushChanges.php
Published entity to Sync Core.
PushEntities::batchFinished in src/Controller/PushEntities.php
Batch push finished callback.
PushIntent::pushEntityFromUi in src/PushIntent.php
Helper function to push an entity and display the user the results. If you want to make changes programmatically, use ::pushEntity() instead.

... See full list

File

./cms_content_sync.module, line 1975
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");
}