Commit f623af9
committed
REFACTOR: Remove getType() override to allow extensibility
- Remove getType() method override so element inherits BaseElement::getType()
- Add $singular_name = 'Media' and $plural_name = 'Media Blocks'
- Allows extensions to customize display name via $singular_name
Fixes #32
Related: dynamic/silverstripe-essentials-tools#681 parent 796562e commit f623af9
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
| |||
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
0 commit comments