protected function CoalescingDirectoryResource::getRelativeName

Returns the relative version of a filename.

Parameters

ResourceInterface $file The file:

ResourceInterface $directory The directory:

Return value

string The name to compare with files from other directories

1 call to CoalescingDirectoryResource::getRelativeName()
CoalescingDirectoryResource::getFileResources in drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/Resource/CoalescingDirectoryResource.php
Performs the coalesce.

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/Resource/CoalescingDirectoryResource.php, line 86

Class

CoalescingDirectoryResource
Coalesces multiple directories together into one merged resource.

Namespace

Assetic\Factory\Resource

Code

protected function getRelativeName(ResourceInterface $file, ResourceInterface $directory) {
  return substr((string) $file, strlen((string) $directory));
}