Skip to content

Commit d89aeca

Browse files
committed
REFACTOR: Remove getType() override to allow extensibility
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 #13
1 parent 8daafc7 commit d89aeca

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Elements/ElementCarousel.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,4 @@ protected function provideBlockSchema()
110110
$blockSchema['content'] = $this->getSummary();
111111
return $blockSchema;
112112
}
113-
114-
/**
115-
* @return string
116-
*/
117-
public function getType()
118-
{
119-
return _t(__CLASS__ . '.BlockType', 'Carousel');
120-
}
121113
}

0 commit comments

Comments
 (0)