Crud\Action\Bulk\ToggleAction::__construct PHP 메소드

__construct() 공개 메소드

Constructor
public __construct ( Controller $Controller, array $config = [] ) : void
$Controller Cake\Controller\Controller Controller instance
$config array Default settings
리턴 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);
    }