function MysqliHooks::help

Implements hook_help().

Attributes

#[Hook('help')]

File

core/modules/mysqli/src/Hook/MysqliHooks.php, line 19

Class

MysqliHooks
Hook implementations for mysqli.

Namespace

Drupal\mysqli\Hook

Code

public function help($route_name, RouteMatchInterface $route_match) : ?string {
  switch ($route_name) {
    case 'help.page.mysqli':
      $output = '';
      $output .= '<h3>' . $this->t('About') . '</h3>';
      $output .= '<p>' . $this->t('The MySQLi module provides the connection between Drupal and a MySQL, MariaDB or equivalent database using the mysqli PHP extension. For more information, see the <a href=":mysqli">online documentation for the MySQLi module</a>.', [
        ':mysqli' => 'https://www.drupal.org/documentation/modules/mysqli',
      ]) . '</p>';
      return $output;
  }
  return NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.