SilverStripe\Assets\Shortcodes\FileShortcodeProvider::find_shortcode_record
Find the record to use for a given shortcode.
Signature
public function find_shortcode_record(array
$args,
[int&
$errorCode = NULL] )
Parameters
$args
— array- Array of input shortcode arguments
$errorCode
— int- If the file is not found, or is inaccessible, this will be assigned to a HTTP error code.
Returns
- File|null
- The File DataObject, if it can be found.