readNetworkSiteName
readNetworkSiteName(
xml):string|undefined
Defined in: siteMetadataXml.ts:111
Read a Network metadata document’s <site> element — the CustomSite API name it belongs to.
Parameters
Section titled “Parameters”string
The contents of a networks/*.network-meta.xml file.
Returns
Section titled “Returns”string | undefined
The <site> value, or undefined if the element is absent.
Throws
Section titled “Throws”If xml isn’t parseable.