You are here

public function ContentSyncHelpManager::buildIndex in Content Synchronization 8.2

Same name and namespace in other branches
  1. 8 src/ContentSyncHelpManager.php \Drupal\content_sync\ContentSyncHelpManager::buildIndex()
  2. 3.0.x src/ContentSyncHelpManager.php \Drupal\content_sync\ContentSyncHelpManager::buildIndex()

Build the main help page for the Content Sync module.

Return value

array An render array containing help for the Content Sync module.

Overrides ContentSyncHelpManagerInterface::buildIndex

File

src/ContentSyncHelpManager.php, line 171

Class

ContentSyncHelpManager
Content Sync help manager.

Namespace

Drupal\content_sync

Code

public function buildIndex() {
  $build['intro'] = [
    '#markup' => $this
      ->t('The Content Sync module is a content synchronization manager for Drupal 8.'),
    '#prefix' => '<p>',
    '#suffix' => '</p>',
  ];
  $build['sections'] = [
    '#prefix' => '<div class="content_sync-help">',
    '#suffix' => '</div>',
  ];
  $build['sections']['uses'] = $this
    ->buildUses();
  $build['sections']['about'] = $this
    ->buildAbout();
  $build['sections']['#attached']['library'][] = 'content_sync/content_sync.help';
  return $build;
}