public function ContentSyncHelpManager::buildIndex in Content Synchronization 8
Same name and namespace in other branches
- 8.2 src/ContentSyncHelpManager.php \Drupal\content_sync\ContentSyncHelpManager::buildIndex()
- 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_syncCode
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 content_sync-help-accordion">',
'#suffix' => '</div>',
];
$build['sections']['uses'] = $this
->buildUses();
$build['sections']['about'] = $this
->buildAbout();
$build['sections']['#attached']['library'][] = 'content_sync/content_sync.help';
return $build;
}