src/AddToCampaignHandler.php
public function handle()
    {
        Deprecation::notice('5.0', 'handle() will be removed. Use addToCampaign or Form directly');
        $object = $this->getObject($this->data['ID'], $this->data['ClassName']);

        if (empty($this->data['Campaign'])) {
            return $this->Form($object)->forTemplate();
        } else {
            return $this->addToCampaign($object, $this->data['Campaign']);
        }
    }
public function handle()
    {
        Deprecation::notice('5.0', 'handle() will be removed. Use addToCampaign or Form directly');
        $object = $this->getObject($this->data['ID'], $this->data['ClassName']);

        if (empty($this->data['Campaign'])) {
            return $this->Form($object)->forTemplate();
        } else {
            return $this->addToCampaign($object, $this->data['Campaign']);
        }
    }
public function handle ( ) { Deprecation :: notice ( '5.0' , 'handle() will be removed. Use addToCampaign or Form directly' ) ; $ object = $ this -> getObject ( $ this -> data [ 'ID' ] , $ this -> data [ 'ClassName' ] ) ; if ( empty ( $ this -> data [ 'Campaign' ] ) ) { return $ this -> Form ( $ object ) -> forTemplate ( ) ; } else { return $ this -> addToCampaign ( $ object , $ this -> data [ 'Campaign' ] ) ; } }
Perform the action. Either returns a Form or performs the action, as per the class doc

@return DBHTMLText|HTTPResponse
Perform the action . Either returns a Form or performs the action as per the class doc