FieldtypeFile::getPagefile()

Given a Page and file basename, return the Pagefile object if file is found for Page

The returned Pagefile will have a field property that reveals the Field it is from.

Usage

$pagefile = $fieldtypeFile->getPagefile(Page $page, string $basename);

Arguments

NameType(s)Description
$pagePage
$basenamestring

Return value


FieldtypeFile methods and properties

API reference based on ProcessWire core version 3.0.251