Source of file AddToCampaignHandler_FormAction.php
Size: 0,709 Bytes - Last Modified: 2021-12-23T10:28:10+00:00
/var/www/docs.ssmods.com/process/src/src/AddToCampaignHandler_FormAction.php
123456789101112131415161718192021222324 | <?php namespace SilverStripe\CampaignAdmin; use SilverStripe\Forms\FormAction; /** * A form action to return from geCMSActions or otherwise include in a CMS Edit Form that * has the right action name and CSS classes to trigger the AddToCampaignHandler. * * See SiteTree.php and CMSMain.php for an example of it's use */ class AddToCampaignHandler_FormAction extends FormAction { public function __construct() { parent::__construct('addtocampaign', _t(__CLASS__.'.ADDTOCAMPAIGN', 'Add to Campaign')); $this->setUseButtonTag(false); $this->addExtraClass('add-to-campaign-action'); $this->addExtraClass('btn'); $this->addExtraClass('btn-primary'); } } |