-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent_intel.module
More file actions
33 lines (30 loc) · 1.32 KB
/
content_intel.module
File metadata and controls
33 lines (30 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @file
* Content Intelligence module.
*
* Provides CLI access to entity data and intelligence from multiple sources.
*/
declare(strict_types=1);
/**
* Implements hook_help().
*/
function content_intel_help(string $route_name): string {
if ($route_name === 'help.page.content_intel') {
$output = '<h2>Content Intelligence</h2>';
$output .= '<p>The Content Intelligence module provides CLI access to entity data ';
$output .= 'and aggregated intelligence from multiple sources via a plugin system.</p>';
$output .= '<h3>Drush Commands</h3>';
$output .= '<ul>';
$output .= '<li><code>drush ci:types</code> - List available entity types</li>';
$output .= '<li><code>drush ci:bundles [entity_type]</code> - List bundles for an entity type</li>';
$output .= '<li><code>drush ci:fields [entity_type] [bundle]</code> - List fields for an entity</li>';
$output .= '<li><code>drush ci:plugins</code> - List available intel plugins</li>';
$output .= '<li><code>drush ci:list [entity_type] [bundle]</code> - List entities</li>';
$output .= '<li><code>drush ci:entity [entity_type] [id]</code> - Get full intel for an entity</li>';
$output .= '<li><code>drush ci:batch [entity_type]</code> - Batch collect intel for entities</li>';
$output .= '</ul>';
return $output;
}
return '';
}