mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Cleanup PHPDoc and use injector for AddToCampaignHandler
This commit is contained in:
parent
69d7a3ae7d
commit
7a36789130
@ -1,4 +1,6 @@
|
||||
<?php
|
||||
use SilverStripe\Model\FieldType\DBHTMLText;
|
||||
|
||||
/**
|
||||
* The main "content" area of the CMS.
|
||||
*
|
||||
@ -1191,8 +1193,15 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
||||
return $this->getResponseNegotiator()->respond($this->getRequest());
|
||||
}
|
||||
|
||||
/**
|
||||
* Action handler for adding pages to a campaign
|
||||
*
|
||||
* @param array $data
|
||||
* @param Form $form
|
||||
* @return DBHTMLText|SS_HTTPResponse
|
||||
*/
|
||||
public function addtocampaign($data, $form) {
|
||||
$handler = new AddToCampaignHandler($form, $data);
|
||||
$handler = AddToCampaignHandler::create($form, $data);
|
||||
return $handler->handle();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user