fileName = $path; } /** * Returns a list of editable asset extensions. * The list can be overridden with the cms.editableAssetTypes configuration option. * @return array */ public static function getEditableExtensions() { $defaultTypes = ['css','js','less','sass','scss']; $configTypes = Config::get('cms.editableAssetTypes'); if (!$configTypes) return $defaultTypes; return $configTypes; } /** * Returns the directory name corresponding to the object type. * For pages the directory name is "pages", for layouts - "layouts", etc. * @return string */ public static function getObjectTypeDirName() { return 'assets'; } /** * {@inheritDoc} */ protected static function getMaxAllowedPathNesting() { return null; } }