You are here

constant MEDIA_DIRECTORY_ROOT in Media Directories 8

Same name and namespace in other branches
  1. 3.x media_directories.module \MEDIA_DIRECTORY_ROOT
  2. 2.x media_directories.module \MEDIA_DIRECTORY_ROOT

Root directory value.

It is hard to use 0, because it might be considered as empty value in various places (e.g views filter).

12 uses of MEDIA_DIRECTORY_ROOT
AddMediaFormBase::getDirectory in modules/media_directories_ui/src/Form/AddMediaFormBase.php
Gets the current active directory from the form state.
DirectoryBrowser::getForm in modules/media_directories_ui/src/Plugin/EntityBrowser/Widget/DirectoryBrowser.php
MediaDirectoriesController::directoryAdd in modules/media_directories_ui/src/Controller/MediaDirectoriesController.php
Create new directory.
MediaDirectoriesController::directoryMove in modules/media_directories_ui/src/Controller/MediaDirectoriesController.php
Move directory to different directory.
MediaDirectoriesController::directoryTree in modules/media_directories_ui/src/Controller/MediaDirectoriesController.php
Return directory tree as JSON.

... See full list

File

./media_directories.module, line 20
Main module file.

Code

const MEDIA_DIRECTORY_ROOT = -1;