Function Hook_commandr_fs_galleries->file_convert_id_to_filename

Definitions

sources/hooks/systems/commandr_fs/galleries.php

  • Get the filename for a resource ID. Note that filenames are unique across all folders in a filesystem.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$resource_type ID_TEXT No No required parameter N/A N/A The resource type
$resource_id ID_TEXT No No required parameter N/A N/A The resource ID

Returns

  • The filename (null: could not find)
  • Type: ?ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the filename for a resource ID. Note that filenames are unique across all folders in a filesystem.
 *
 * @param  ID_TEXT $resource_type The resource type
 * @param  ID_TEXT $resource_id The resource ID
 * @return ?ID_TEXT The filename (null: could not find)
 */

public function file_convert_id_to_filename(string $resource_type, string $resource_id) : ?string