Skip to content
Merged
Changes from all commits
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
12 changes: 2 additions & 10 deletions src/Elements/ElementTestimonials.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ class ElementTestimonials extends BaseElement
/**
* @var string
*/
private static $singular_name = 'Testimonials Element';
private static $singular_name = 'Testimonials';

/**
* @var string
*/
private static $plural_name = 'Testimonials Elements';
private static $plural_name = 'Testimonials Blocks';
Comment on lines +32 to +37
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.

The singular and plural names appear inconsistent. If $singular_name is 'Testimonials' (already in plural form), then $plural_name should logically also be 'Testimonials' for consistency. Alternatively, consider $singular_name = 'Testimonials Block' and $plural_name = 'Testimonials Blocks' to follow standard singular/plural conventions where the plural adds an 's' to the singular form.

Copilot uses AI. Check for mistakes.

/**
* @var string
Expand Down Expand Up @@ -95,14 +95,6 @@ protected function provideBlockSchema()
return $blockSchema;
}

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

/**
* @return FieldList
*/
Expand Down