MCPcopy Create free account
hub / github.com/codecombat/codecombat / getMeta

Method getMeta

app/views/editor/level/LevelEditView.js:146–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 getMeta () {
147 let title = $.i18n.t('editor.level_title')
148 let levelName = utils.i18n(((this.level != null ? this.level.attributes : undefined) || {}), 'displayname')
149 if (!levelName) { levelName = utils.i18n(((this.level != null ? this.level.attributes : undefined) || {}), 'name') }
150 if (levelName) {
151 title = levelName + ' - ' + title
152 }
153 return { title }
154 }
155
156 destroy () {
157 // Currently only check presence on the level.

Callers 1

onLoadedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected