SilverStripe\Admin\CMSBatchAction::applicablePagesHelper
Helper method for applicablePages() methods. Acts as a skeleton implementation.
Signature
public function applicablePagesHelper(array
$ids,
string
$methodName,
[boolean
$checkStagePages = true,
[boolean
$checkLivePages = true]] )
Parameters
$ids
—
array
- The IDs passed to applicablePages
$methodName
—
string
- The canXXX() method to call on each page to check if the action is applicable
$checkStagePages
—
boolean
- Set to true if you want to check stage pages
$checkLivePages
—
boolean
- Set to true if you want to check live pages (e.g, for deleted-from-draft)
Returns
- array