SilverStripe\Versioned\Versioned::onPrepopulateTreeDataCache
Hook into {@link Hierarchy::prepopulateTreeDataCache}.
Signature
public function onPrepopulateTreeDataCache([DataList|array
$recordList = NULL,
[array
$options = ]] )
Parameters
$recordList
—
object
- The list of records to prepopulate caches for. Null for all records.
$options
—
array
- A map of hints about what should be cached. "numChildrenMethod" and
"childrenMethod" are allowed keys.