function entity_hierarchy_drush_command in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x entity_hierarchy.drush.inc \entity_hierarchy_drush_command()
Implements hook_drush_command().
File
- ./
entity_hierarchy.drush.inc, line 11 - Contains drush commands for the module.
Code
function entity_hierarchy_drush_command() {
$items = [];
$items['entity-hierarchy-rebuild-tree'] = [
'description' => 'Rebuild tree.',
'arguments' => [
'field_name' => dt('Field machine name'),
'entity_type_id' => dt('Entity type id'),
],
'options' => [],
'examples' => [
'drush entity-hierarchy-rebuild-tree field_parents node' => 'Rebuild tree for node field named field_parents.',
],
];
return $items;
}