function taxonomy_entity_index_drush_command in Taxonomy Entity Index 8
Same name and namespace in other branches
- 7 taxonomy_entity_index.drush.inc \taxonomy_entity_index_drush_command()
Implements hook_drush_command().
@See drush_parse_command() for a list of recognized keys.
File
- ./
taxonomy_entity_index.drush.inc, line 13 - Drush integration for taxonomy_entity_index.
Code
function taxonomy_entity_index_drush_command() {
$items = [];
$items['taxonomy-entity-index-rebuild'] = [
'description' => 'Rebuild taxonomy entity index',
'options' => [
'entity_types' => 'A comma separated list of entity types to reindex.',
],
'examples' => [
'drush tei-rebuild' => 'Rebuilds the index for all entity types.',
'drush tei-rebuild --entity_types="paragraph,content"' => 'Rebuilds the index for the paragraph and content entity types',
],
'aliases' => [
'tei-rebuild',
],
];
return $items;
}