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/ElementEmbeddedCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ class ElementEmbeddedCode extends BaseElement
/**
* @var string
*/
private static $singular_name = 'Embedded Code Element';
private static $singular_name = 'Embedded Code';

/**
* @var string
*/
private static $plural_name = 'Embedded Code Elements';
private static $plural_name = 'Embedded Code Blocks';
Comment on lines +23 to +28
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 plural name 'Embedded Code Blocks' is inconsistent with the singular name 'Embedded Code'. Typically, the plural should be the plural form of the singular. Consider changing $plural_name to 'Embedded Codes' to maintain consistency, or if you want to emphasize the block nature, consider changing $singular_name to 'Embedded Code Block' so that the plural follows naturally as 'Embedded Code Blocks'.

Copilot uses AI. Check for mistakes.

private static $description = 'Embed code like iFrames or Javascript on a page.';

Expand Down Expand Up @@ -57,14 +57,6 @@ public function getCMSFields()
return $fields;
}

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

/**
* @return DBHTMLText
*/
Expand Down