MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / constructor

Method constructor

helpers/config-node.js:249–269  ·  view source on GitHub ↗
( options = {} )

Source from the content-addressed store, hash-verified

247export class PageHead {
248
249 constructor ( options = {} ) {
250 const {
251 title,
252 description,
253 meta = [],
254 link = [],
255 structuredData = null,
256
257 domain = getSiteUrl(),
258 pathname = '',
259 } = options
260
261 this.title = title
262 this.description = description
263 this.meta = meta
264 this.link = link
265 this.structuredData = structuredData
266
267 this.domain = domain
268 this.pathname = pathname
269 }
270
271 get pageUrl () {
272 const urlInstance = new URL( this.domain )

Callers

nothing calls this directly

Calls 1

getSiteUrlFunction · 0.90

Tested by

no test coverage detected