mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
564ddfa602
commit
bd9997f79a
@ -69,8 +69,6 @@ class AddToCampaignHandler {
|
|||||||
*/
|
*/
|
||||||
protected $name;
|
protected $name;
|
||||||
|
|
||||||
protected $showTitle = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AddToCampaignHandler constructor.
|
* AddToCampaignHandler constructor.
|
||||||
*
|
*
|
||||||
@ -87,10 +85,6 @@ class AddToCampaignHandler {
|
|||||||
$this->name = $name;
|
$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
|
* 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'])
|
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(
|
$form = new Form(
|
||||||
$this->controller,
|
$this->controller,
|
||||||
|
Loading…
Reference in New Issue
Block a user