function graphql_help in GraphQL 8.3
Same name and namespace in other branches
- 8.4 graphql.module \graphql_help()
Implements hook_help().
File
- ./
graphql.module, line 20
Code
function graphql_help($routeName) {
if ($routeName !== 'help.page.graphql') {
return;
}
$title = t('About');
$description = t('
<p>This module generates and exposes a
<a href="http://graphql.org/" target="_blank">GraphQL</a> schema for
<a href="https://www.drupal.org/8" target="_blank">Drupal 8</a> entities,
and allows you to expose your own custom schema in a consistent way and with
minimal effort.</p>');
$help = <<<EOT
<h3>{<span class="php-variable">$title</span>}</h3>
{<span class="php-variable">$description</span>}
EOT;
return $help;
}