Skip to content

Commit 8f4218f

Browse files
authored
REFACTOR: Remove getType() override to allow extensibility (#55)
Remove the getType() method override so the element inherits BaseElement::getType() which uses i18n_singular_name(). This allows sites to customize the element's display name via extensions by setting $singular_name. Fixes #54
1 parent d804102 commit 8f4218f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Elements/ElementAccordion.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,4 @@ protected function provideBlockSchema()
132132
$blockSchema['content'] = $this->getSummary();
133133
return $blockSchema;
134134
}
135-
136-
/**
137-
* @return string
138-
*/
139-
public function getType()
140-
{
141-
return _t(__CLASS__.'.BlockType', 'Accordion');
142-
}
143135
}

0 commit comments

Comments
 (0)