Pages::getAction($action)

Version 3.8

Open action with these pages

Create action object and map pages in collection to it.

Return value

Object Action

Arguments

$action
Id or technical name of the action

Full documentation

Send confirmation mail to all Orders that are Ordered

$this->get('pages','order')
    ->addWhere('status','Ordered')
    ->getAction('order_confirmation_mail')
    ->send();