Skip to content
Snippets Groups Projects

Issue #3342233: Implement hook_help()

1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
+ 16
0
@@ -10,6 +10,22 @@ use Drupal\Core\File\FileSystemInterface;
@@ -10,6 +10,22 @@ use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\file\Plugin\Field\FieldType\FileFieldItemList;
use Drupal\file\Plugin\Field\FieldType\FileFieldItemList;
use Drupal\Core\Render\Element;
use Drupal\Core\Render\Element;
 
use Drupal\Core\Routing\RouteMatchInterface;
 
 
/**
 
* Implements hook_help().
 
*/
 
function file_upload_options_help($route_name, RouteMatchInterface $route_match) {
 
switch ($route_name) {
 
case 'help.page.file_upload_options':
 
$output = '<h2>' . t('About') . '</h2>';
 
$output .= '<p>' .t('File Upload Options module allows for customization of how uploaded files and images with the same name as existing files are handled. These options are configurable on a per-field basis and are grouped by entity type.') . '</p>';
 
$output .= '<p>' .t('The goal is to provide a seamless integration with all file fields, without requiring the replacement of existing widgets or file fields. This is accomplished by modifying the underlying file handling process, rather than the user interface.') . '</p>';
 
$output .= '<p>' .t('Additionally, the module supports file uploads through REST using the FileUploadResource.') . '</p>';
 
return $output;
 
break;
 
}
 
}
/**
/**
* Implements hook_form_alter().
* Implements hook_form_alter().
Loading