From bd9997f79a08826a26aec8c64020d71bde7855da Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 28 Aug 2016 13:35:09 +1200 Subject: [PATCH] Removed AddToCampaignHandler->setShowTitle() It was used to support different display variations in admin/assets and admin/pages, while those display variations should've been removed in the first place (and have been now). --- admin/code/AddToCampaignHandler.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/admin/code/AddToCampaignHandler.php b/admin/code/AddToCampaignHandler.php index a035f26de..04ce9c65b 100644 --- a/admin/code/AddToCampaignHandler.php +++ b/admin/code/AddToCampaignHandler.php @@ -69,8 +69,6 @@ class AddToCampaignHandler { */ protected $name; - protected $showTitle = true; - /** * AddToCampaignHandler constructor. * @@ -87,10 +85,6 @@ class AddToCampaignHandler { $this->name = $name; } - public function setShowTitle($show) { - $this->showTitle = $show; - } - /** * Perform the action. Either returns a Form or performs the action, as per the class doc * @@ -189,14 +183,6 @@ class AddToCampaignHandler { HiddenField::create('ClassName', null, $this->data['ClassName']) ]); - if ($this->showTitle) { - $fields = new FieldList( - $header = new HeaderField('Heading', _t('Campaigns.AddToCampaign', 'Add To Campaign'), 3), - $content = new CompositeField($fields) - ); - $header->addExtraClass('add-to-campaign__header'); - $content->addExtraClass('add-to-campaign__content'); - } $form = new Form( $this->controller,