You are here

public function ContentSyncHelpManager::getHelp in Content Synchronization 8.2

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

Get help.

Parameters

string|null $id: (optional) Help id.

Return value

array|mixed A single help item or all help.

Overrides ContentSyncHelpManagerInterface::getHelp

File

src/ContentSyncHelpManager.php, line 100

Class

ContentSyncHelpManager
Content Sync help manager.

Namespace

Drupal\content_sync

Code

public function getHelp($id = NULL) {
  if ($id !== NULL) {
    return isset($this->help[$id]) ? $this->help[$id] : NULL;
  }
  else {
    return $this->help;
  }
}