Crud\Action\Bulk\ToggleAction::__construct PHP Method

__construct() public method

Constructor
public __construct ( Controller $Controller, array $config = [] ) : void
$Controller Cake\Controller\Controller Controller instance
$config array Default settings
return void
    public function __construct(Controller $Controller, $config = [])
    {
        $this->_defaultConfig['messages'] = ['success' => ['text' => 'Value toggled successfully'], 'error' => ['text' => 'Could not toggle value']];
        parent::__construct($Controller, $config);
    }