getFilesystemPath() public method

Returns the path on the file system.
public getFilesystemPath ( ) : string | null
return string | null The file system path or `null` if the resource has no associated local file.
コード例 #1
0
 /**
  * Transform resource into a config array
  * @param FilesystemResource $resource
  * @return array 
  */
 public function transform(FilesystemResource $resource)
 {
     $path = $resource->getFilesystemPath();
     $config = (require $path);
     return $this->validateConfig($config) ? $config : [];
 }