public defaults ( string $type, string | array $name, mixed $config = null ) : mixed | ||
$type | string | Can be anything, but 'listeners' or 'actions' is currently only used. |
$name | string | array | The name of the $type - e.g. 'api', 'relatedModels' or an array ('api', 'relatedModels'). If $name is an array, the $config will be applied to each entry in the $name array. |
$config | mixed | If NULL, the defaults is returned, else the defaults are changed. |
return | mixed |