Skip to content

Instantly share code, notes, and snippets.

@YuzuruSano
Created December 11, 2020 00:56
Show Gist options
  • Save YuzuruSano/75210c6e42165459e0b32d199f77e6e7 to your computer and use it in GitHub Desktop.
Save YuzuruSano/75210c6e42165459e0b32d199f77e6e7 to your computer and use it in GitHub Desktop.
concrete5でファイルが含まれているフォルダ(ファイルマネージャーで設定したやつ)情報を取得する
<?php
// https://documentation.concrete5.org/api/8.4.1/Concrete/Core/Tree/Node/Type/FileFolder.html
$file = \File::getByID(624);
$folder = $file->getFileFolderObject();
var_dump($folder->getTreeNodeDisplayName());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment