Commit e0ac9dd
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.
Also updated $singular_name from 'Embedded Code Element' to
'Embedded Code' and $plural_name to 'Embedded Code Blocks' for
better consistency with other elements.
Fixes #191 parent 332f252 commit e0ac9dd
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 60 | | |
69 | 61 | | |
70 | 62 | | |
| |||
0 commit comments