mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
FIX: getType() function compatibility
This commit is contained in:
parent
00ae5dd095
commit
309d7b42fb
@ -33,9 +33,9 @@ class AccordionElement extends ElementList
|
|||||||
'KeepOpenned' => 'Boolean(0)',
|
'KeepOpenned' => 'Boolean(0)',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function getType()
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Accordion()
|
public function Accordion()
|
||||||
|
@ -28,9 +28,9 @@ class CustomSnippetElement extends ElementContent
|
|||||||
|
|
||||||
private static $table_name = 'CustomSnippetElement';
|
private static $table_name = 'CustomSnippetElement';
|
||||||
|
|
||||||
public function getType()
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCMSFields()
|
public function getCMSFields()
|
||||||
|
@ -45,9 +45,9 @@ class InstagramElement extends BaseElement
|
|||||||
'DisplayGallery' => true,
|
'DisplayGallery' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function getType()
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -50,7 +50,7 @@ class MapElement extends ElementContent
|
|||||||
|
|
||||||
public function getType(): string
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCMSFields(): FieldList
|
public function getCMSFields(): FieldList
|
||||||
|
@ -29,6 +29,6 @@ class SidebarElement extends BaseElement
|
|||||||
|
|
||||||
public function getType(): string
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,9 +69,9 @@ class SliderElement extends ElementSlideshow
|
|||||||
|
|
||||||
private $items;
|
private $items;
|
||||||
|
|
||||||
public function getType()
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function ratioSize($size)
|
protected function ratioSize($size)
|
||||||
|
@ -25,9 +25,9 @@ class TeamMembersElement extends BaseElement
|
|||||||
|
|
||||||
private static $description = 'Displays random Team Members';
|
private static $description = 'Displays random Team Members';
|
||||||
|
|
||||||
public function getType()
|
public function getType(): string
|
||||||
{
|
{
|
||||||
return self::$singular_name;
|
return _t(__CLASS__ . '.BlockType', self::$singular_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Members()
|
public function Members()
|
||||||
|
Loading…
Reference in New Issue
Block a user