DNADesign\Elemental\TopPage\DataExtension::withTopPageUpdate
Use this to wrap any code which is supposed to run with desired top page update setting Useful for unit tests as you may want to enable / disable this feature based on need
Signature
public function withTopPageUpdate(bool
$update,
callable
$callback )
Parameters
$update
— bool
$callback
— callable
Returns
- mixed