public function CoalescingDirectoryResource::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/CoalescingDirectoryResource.php, line 48

Class

CoalescingDirectoryResource
Coalesces multiple directories together into one merged resource.

Namespace

Assetic\Factory\Resource

Code

public function getContent() {
  $parts = array();
  foreach ($this
    ->getFileResources() as $file) {
    $parts[] = $file
      ->getContent();
  }
  return implode("\n", $parts);
}