SilverStripe\Assets\AssetControlExtension::addAssetsFromRecord
Given a record, add all assets it contains to the given manipulation.
State can be declared for this record, otherwise the underlying DataObject will be queried for canView() to see if those assets are public
Signature
protected function addAssetsFromRecord(AssetManipulationList
$manipulation,
DataObject
$record,
string
$state )
Parameters
$manipulation
— SilverStripe\Assets\AssetManipulationList- Set of manipulations to add assets to
$record
— SilverStripe\ORM\DataObject- Record
$state
— string- One of AssetManipulationList::STATE_* constant values.