You are here

public static function ExternalPackageController::getPptConversionDir in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Controller/ExternalPackageController.php \Drupal\opigno_module\Controller\ExternalPackageController::getPptConversionDir()

Returns ppt conversion directory for current user.

3 calls to ExternalPackageController::getPptConversionDir()
AddExternalPackageForm::validateForm in src/Form/AddExternalPackageForm.php
Form validation handler.
ExternalPackageController::ajaxFormExternalPackageFormSubmit in src/Controller/ExternalPackageController.php
Custom submit handler added via the function opigno_module_form_alter().
ExternalPackageController::createH5pContent in src/Controller/ExternalPackageController.php
Function for creating h5p content for Interactive content activity.

File

src/Controller/ExternalPackageController.php, line 571

Class

ExternalPackageController
Class ActivitiesBrowserController.

Namespace

Drupal\opigno_module\Controller

Code

public static function getPptConversionDir() {
  $user = \Drupal::currentUser();
  return OPIGNO_MODULE_PPT_TEMP_DIR . '/' . $user
    ->id();
}