\DevOwl\TcfVendorListNormalizeUtils

Utility functionalities.

Summary

Methods
Properties
Constants
correctRestrictivePurposes()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

correctRestrictivePurposes()

correctRestrictivePurposes(string  $scope,array  $vendor,array  $restrictivePurposes,array  $used)

"Correct" the restrictive purposes (e.g. `global` scope does not allow configurations) of a TCF vendor configuration. It fills `$used` with used declarations.

Parameters

string $scope

Can be global or service-specific

array $vendor

The vendor object (including purposes, specialPurposes, ...)

array $restrictivePurposes
array $used

Pass an empty array and it will automatically filled with used declarations