application/Espo/Core/Utils/Metadata.php
public function getCustom($key1, $key2, $default = null)
    {
        $filePath = array($this->paths['customPath'], $key1, $key2.'.json');
        $fileContent = $this->getFileManager()->getContents($filePath);

        if ($fileContent) {
            return Json::decode($fileContent);
        }

        return $default;
    }
public function getCustom($key1, $key2, $default = null)
    {
        $filePath = array($this->paths['customPath'], $key1, $key2.'.json');
        $fileContent = $this->getFileManager()->getContents($filePath);

        if ($fileContent) {
            return Json::decode($fileContent);
        }

        return $default;
    }
public function getCustom ( $ key1 , $ key2 , $ default = null ) { $ filePath = array ( $ this -> paths [ 'customPath' ] , $ key1 , $ key2 . '.json' ) ; $ fileContent = $ this -> getFileManager ( ) -> getContents ( $ filePath ) ; if ( $ fileContent ) { return Json :: decode ( $ fileContent ) ; } return $ default ; }
Get metadata definition in custom directory

@param  string|array $key
@param  mixed $default

@return object|mixed
Get metadata definition in custom directory