function defaultcontent_drush_command in Default Content 8
Implements hook_drush_command().
File
- drush/
defaultcontent.drush.inc, line 11 - Drush integration for the defaultcontent module.
Code
function defaultcontent_drush_command() {
$items['defaultcontent-export'] = [
'description' => dt('Exports a single entity'),
'arguments' => [
'entity_type' => dt('The entity type to export.'),
'entity_id' => dt('The ID of the entity to export.'),
'module' => dt('The module or profile to hold this content.'),
],
//I'm not sure how the options syntax works. 'ref' is intended as a flag
'options' => [
'ref' => dt('Include content entities from entity_reference fields, including the node owner'),
],
'aliases' => [
'dce',
],
'required-arguments' => 2,
];
return $items;
}