Function Resource_fs_base->can_accept_filetype

Definitions

sources/resource_fs_base_class.php

  • Whether the filesystem hook can handle a particular file type.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filetype string No No required parameter N/A N/A The file type (no file extension)

Returns

  • List of our resource types that can
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Whether the filesystem hook can handle a particular file type.
 *
 * @param  string $filetype The file type (no file extension)
 * @return array List of our resource types that can
 */

public function can_accept_filetype(string $filetype) : array