You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow the REST_Consent_Mode_Controller class from the branch hack/como.
Register an instance of the REST_Consent_Mode_Controller class in Consent_Mode.
Test Coverage
Provide PHPUnit test coverage for the above changes.
QA Brief
Use the following snippet to test the POST endpoint.
Ensure at least one of enabled or regions is set.
enabled should be a boolean, regions an array of strings conforming to the ISO_3166-2 region code pattern (i.e. case insensitive [A-Z]{2} or [A-Z]{2}-[A-Z]{2}).
Feature Description
This issue is for adding REST endpoint registration, preloading, etc to read and update consent mode settings added in #8270.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
GET core/site/data/consent-mode
POST core/site/data/consent-mode
POST
payload should be that of the settings as defined in Create settings infrastructure for Consent Mode #8270.GET
request should be preloaded at page load.Implementation Brief
REST_Consent_Mode_Controller
class from the branch hack/como.REST_Consent_Mode_Controller
class inConsent_Mode
.Test Coverage
QA Brief
enabled
orregions
is set.enabled
should be a boolean,regions
an array of strings conforming to the ISO_3166-2 region code pattern (i.e. case insensitive[A-Z]{2}
or[A-Z]{2}-[A-Z]{2}
).Changelog entry
The text was updated successfully, but these errors were encountered: