You are here

function composer_manager_help in Composer Manager 8

Implements hook_help().

File

./composer_manager.module, line 13
Allows contributed modules to require external libraries via Composer.

Code

function composer_manager_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.composer_manager':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Composer Manager allows contributed modules to depend on PHP libraries managed via Composer. <a href="https://www.drupal.org/project/composer">Composer</a> is a command line tool for installing PHP libraries and their dependencies on a per-project basis. Nowadays, all libraries are registered on <a href="https://packagist.org">Packagist</a> and expect to be installed via Composer. See the Composer <a href="https://getcomposer.org/doc/00-intro.md">Getting Started</a> page for more information on Composer.  For additional information on Composer Manager, see <a href="https://www.drupal.org/node/2405811"> the online documentation for Composer Manager </a>.') . '</p>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<dl>';
      $output .= '<dd>' . t('1. Download the desired modules.') . '</dd>';
      $output .= '<dd>' . t('2. Run `composer drupal-update` from the root of your Drupal directory.') . '</dd>';
      $output .= '<dd>' . t('3. Install the modules.') . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}