Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/Elements/ElementCarousel.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,4 @@ protected function provideBlockSchema()
$blockSchema['content'] = $this->getSummary();
return $blockSchema;
}

/**
* @return string
*/
public function getType()
{
return _t(__CLASS__ . '.BlockType', 'Carousel');
}
}
Copy link

Copilot AI Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing getType() without adding private static $singular_name = 'Carousel'; to the class will break backward compatibility. Without $singular_name, BaseElement::getType() will fall back to 'Block' as the default display name instead of 'Carousel'.

Additionally, the test testGetType() in tests/Elements/ElementCarouselTest.php (line 38-42) expects getType() to return 'Carousel' and will fail after this change unless updated.

Copilot uses AI. Check for mistakes.
Loading