NSWDPC\Utilities\ContentSecurityPolicy\SiteTreeExtension
Provides an extension method so that the SiteTree can gather the CSP meta tag if that is set
- Author: james.ellis@dpc.nsw.gov.au
Synopsis
class SiteTreeExtension
extends Extension
{
- // members
- private static array $has_one = ;
- // methods
- public FieldList updateSettingsFields()
- private void checkCanRun()
- public void MetaTags()
- public void CspMetaTags()
Hierarchy
Extends
- Silverstripe\Core\Extension
Members
private
- $has_one
—
array
Has_one relationship
Methods
private
- checkCanRun() — Check to see if a meta tag can be returned
public
- CspMetaTags() — Note that reporting is ignored/disallowed when using a meta tag. Only the header Content-Security-Policy is allowed.
- MetaTags() — Extension hook, see {@link SilverStripe\CMS\Model\SiteTree::MetaTags}
- updateSettingsFields() — Update Fields