Log in
Model

GetDirectoryTree

Magento\MediaGalleryUi\Model\Directories\GetDirectoryTree

What it does

This class builds a hierarchical tree structure of media gallery directories for display in the admin UI.

Developers would use this to retrieve the complete folder structure under configured media gallery paths, formatted for use with jsTree component.

It recursively scans allowed media directories and organizes them into a nested parent-child relationship.

Public Methods

  • execute()