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).
This commit is contained in:
Ingo Schommer 2016-08-28 13:35:09 +12:00
parent 564ddfa602
commit bd9997f79a

View File

@ -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,