You are here

protected static function ExternalPackageController::getFileExtension in Opigno module 3.x

Same name and namespace in other branches
  1. 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\Controller

Code

protected static function getFileExtension($file_name) {
  return substr(strrchr($file_name, '.'), 1);
}