You are here

interface YamlFormHelpManagerInterface in YAML Form 8

Defines an interface for help classes.

Hierarchy

Expanded class hierarchy of YamlFormHelpManagerInterface

All classes that implement YamlFormHelpManagerInterface

1 file declares its use of YamlFormHelpManagerInterface
YamlFormHelpController.php in src/Controller/YamlFormHelpController.php

File

src/YamlFormHelpManagerInterface.php, line 10

Namespace

Drupal\yamlform
View source
interface YamlFormHelpManagerInterface {

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

  /**
   * Get video.
   *
   * @param string|null $id
   *   (optional) Video id.
   *
   * @return array|mixed
   *   A single help item or all videos.
   */
  public function getVideo($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 the main help page for the YAML Form module.
   *
   * @return array
   *   An render array containing help for the YAML Form module.
   */
  public function buildIndex();

}

Members

Namesort descending Modifiers Type Description Overrides
YamlFormHelpManagerInterface::buildHelp public function Build help for specific route. 1
YamlFormHelpManagerInterface::buildIndex public function Build the main help page for the YAML Form module. 1
YamlFormHelpManagerInterface::getHelp public function Get help. 1
YamlFormHelpManagerInterface::getVideo public function Get video. 1