interface FilenameMapperInterface (View source)

Transform an object identifier to a filename

Methods

string
getBasename(string|array $identifier)

Get the file base name for the given object identifier

string|array
getIdentifier(string $basename)

Get object identifier from a file system base file name

Details

string getBasename(string|array $identifier)

Get the file base name for the given object identifier

Parameters

string|array $identifier Identifier to transform to a file system base file name

Return Value

string Filesystem base file name corresponding to the given identifier.

string|array getIdentifier(string $basename)

Get object identifier from a file system base file name

Parameters

string $basename Filesystem base name.

Return Value

string|array Object identifier