You are here

interface ContentSyncHelpManagerInterface in Content Synchronization 8

Same name and namespace in other branches
  1. 8.2 src/ContentSyncHelpManagerInterface.php \Drupal\content_sync\ContentSyncHelpManagerInterface
  2. 3.0.x src/ContentSyncHelpManagerInterface.php \Drupal\content_sync\ContentSyncHelpManagerInterface

Defines an interface for help classes.

Hierarchy

Expanded class hierarchy of ContentSyncHelpManagerInterface

All classes that implement ContentSyncHelpManagerInterface

1 file declares its use of ContentSyncHelpManagerInterface
ContentHelpController.php in src/Controller/ContentHelpController.php

File

src/ContentSyncHelpManagerInterface.php, line 10

Namespace

Drupal\content_sync
View source
interface ContentSyncHelpManagerInterface {

  /**
   * Get help.
   *
   * @param string|null $id
   *   (optional) Help id.
   *
   * @return array|mixed
   *   A single help item or all help.
   */
  public function getHelp($id = NULL);

  /**
   * Build help for specific route.
   *
   * @param string $route_name
   *   The route for which to find help.
   * @param \Drupal\Core\Routing\RouteMatchInterface $route_match
   *   The route match object from which to find help.
   *
   * @return array
   *   An render array containing help for specific route.
   */
  public function buildHelp($route_name, RouteMatchInterface $route_match);

  /**
   * Build help (aka 'How can we help you?') menu (dropbutton) element.
   *
   * @return array
   *   An render array containing about (aka 'How can we help you?') operations
   *   (dropbutton) element.
   */
  public function buildHelpMenu();

  /**
   * Build the main help page for the Content Sync module.
   *
   * @return array
   *   An render array containing help for the Content Sync module.
   */
  public function buildIndex();

  /**
   * Build the about section.
   *
   * @return array
   *   An render array containing the about section.
   */
  public function buildAbout();

  /**
   * Build the uses section.
   *
   * @param bool $docs
   *   Set to TRUE to build exportable HTML documentation.
   *
   * @return array
   *   An render array containing the uses section.
   */
  public function buildUses($docs = FALSE);

}

Members

Namesort descending Modifiers Type Description Overrides
ContentSyncHelpManagerInterface::buildAbout public function Build the about section. 1
ContentSyncHelpManagerInterface::buildHelp public function Build help for specific route. 1
ContentSyncHelpManagerInterface::buildHelpMenu public function Build help (aka 'How can we help you?') menu (dropbutton) element. 1
ContentSyncHelpManagerInterface::buildIndex public function Build the main help page for the Content Sync module. 1
ContentSyncHelpManagerInterface::buildUses public function Build the uses section. 1
ContentSyncHelpManagerInterface::getHelp public function Get help. 1