protected static function ExternalPackageController::getFileExtension in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Controller/ExternalPackageController.php \Drupal\opigno_module\Controller\ExternalPackageController::getFileExtension()
Returns file extension.
Parameters
string $file_name: File name.
Return value
string File extension.
1 call to ExternalPackageController::getFileExtension()
- ExternalPackageController::ajaxFormExternalPackageFormSubmit in src/
Controller/ ExternalPackageController.php - Custom submit handler added via the function opigno_module_form_alter().
File
- src/
Controller/ ExternalPackageController.php, line 361
Class
- ExternalPackageController
- Class ActivitiesBrowserController.
Namespace
Drupal\opigno_module\ControllerCode
protected static function getFileExtension($file_name) {
return substr(strrchr($file_name, '.'), 1);
}