diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-06 09:54:14 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-06 09:54:14 -0800 |
commit | 4e5f54cf8f64b849bf2fbdd610012ebeb7786091 (patch) | |
tree | 6fd9394a1b5a4733a7d20067b8c588ee5fcd8fc4 /system/admin/config/config.go | |
parent | 40b5cfe2289b179c511a6c73757bb64228f0bc82 (diff) |
removing ContentName() from editor.Editble and adding String() to content.Identifiable so embedded Items can manage display names by default, but easily overridden
Diffstat (limited to 'system/admin/config/config.go')
-rw-r--r-- | system/admin/config/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/admin/config/config.go b/system/admin/config/config.go index 0a7103e..b898b49 100644 --- a/system/admin/config/config.go +++ b/system/admin/config/config.go @@ -18,8 +18,8 @@ type Config struct { CacheInvalidate []string `json:"cache"` } -// ContentName partially implements editor.Editable -func (c *Config) ContentName() string { return c.Name } +// String partially implements content.Identifiable and overrides Item's String() +func (c *Config) String() string { return c.Name } // Editor partially implements editor.Editable func (c *Config) Editor() *editor.Editor { return &c.editor } |