Test your website performance for free
Test your website performance

siteId()

Returns the site ID of the CMS object.

In a multi-site environment, every CMS object is assigned to a site. The ID of this site is stored in the Obj instance and can be obtained using this instance method.

Returns

String | null – the ID of the site the CMS object is assigned to, or null if this is an all-sites (global) Obj.