You are here

constant MEDIA_DIRECTORY_ROOT in Media Directories 3.x

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

15 uses of MEDIA_DIRECTORY_ROOT
AddMediaFormBase::getDirectory in modules/media_directories_ui/src/Form/AddMediaFormBase.php
DirectoryBrowser::getForm in modules/media_directories_ui/src/Plugin/EntityBrowser/Widget/DirectoryBrowser.php
DirectoryBrowserUiForm::buildForm in modules/media_directories_ui/src/Form/DirectoryBrowserUiForm.php
Form constructor.
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.

... See full list

File

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

Code

const MEDIA_DIRECTORY_ROOT = -1;