public function FileResource::getContent

Returns the content of the resource.

Return value

string The content

Overrides ResourceInterface::getContent

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/Resource/FileResource.php, line 38

Class

FileResource
A resource is something formulae can be loaded from.

Namespace

Assetic\Factory\Resource

Code

public function getContent() {
  return file_exists($this->path) ? file_get_contents($this->path) : '';
}