Elgg\Filesystem\File::getContents PHP Method

getContents() public method

Get the text content of this file. Empty string if it doesn't exist.
public getContents ( ) : string
return string
    public function getContents()
    {
        return $this->directory->getContents($this->path);
    }