Same name and namespace in other branches
- 7.x-1.x exif.drush.inc \drush_exif_list() 1 comment
- 8.x-1.x exif.drush.inc \drush_exif_list() 1 comment
Implements Drush callback.
List all entity types supported by this module or check an entity type is supported.
Parameters
string $entity_type: Name of the entity type to check or empty if you want all entity types.
File
-
./
exif.drush.inc, line 71
Code
function drush_exif_list($entity_type = '') {
$entity_types = __check_entity_type($entity_type);
$types = __drush_exif_list_active_types($entity_types);
\Drupal::logger(dt('listing %count content types.', [
'%count' => count($types),
]));
foreach ($types as $type) {
$params = [
'%entity' => $type['entity'],
'%type' => $type['type'],
];
\Drupal::logger(dt(' * %entity, %type', $params));
}
}