code/AssetsFolderExtension.php
public function getAssetsFolderDirName()
    {
        if ($this->owner->getField('AssetsFolderID') != 0) {
            $dirObj = $this->owner->AssetsFolder();
            $dirName = str_replace('assets/', '', $dirObj->Filename);

            return $dirName;
        }
    }
public function getAssetsFolderDirName()
    {
        if ($this->owner->getField('AssetsFolderID') != 0) {
            $dirObj = $this->owner->AssetsFolder();
            $dirName = str_replace('assets/', '', $dirObj->Filename);

            return $dirName;
        }
    }
public function getAssetsFolderDirName ( ) { if ( $ this -> owner -> getField ( 'AssetsFolderID' ) != 0 ) { $ dirObj = $ this -> owner -> AssetsFolder ( ) ; $ dirName = str_replace ( 'assets/' , '' , $ dirObj -> Filename ) ; return $ dirName ; } }
Name of the associated assets folder.

@return string|null
Name of the associated assets folder .