function file_entity_action_info_alter in File Entity (fieldable files) 8.2
Same name and namespace in other branches
- 7.3 file_entity.module \file_entity_action_info_alter()
- 7.2 file_entity.module \file_entity_action_info_alter()
Implements hook_action_info_alter().
File
- ./
file_entity.module, line 85 - Extends Drupal file entities to be fieldable and viewable.
Code
function file_entity_action_info_alter(&$actions) {
if (\Drupal::moduleHandler()
->moduleExists('pathauto')) {
$actions['pathauto_file_update_action'] = array(
'type' => 'file',
'label' => t('Update file alias'),
'configurable' => FALSE,
);
}
}