ImportBlocker
Trait to handle the importer for content blocker in the `Import` class.
Table of Contents
Methods
- correctAssociationIdsForBlocker() : mixed
- Fetch the correct cookie / TCF vendor ids for the meta.
- doImportBlocker() : mixed
- Import content blocker from JSON.
- handleCorruptBlocker() : mixed
- Check missing meta of passed blocker.
Methods
correctAssociationIdsForBlocker()
Fetch the correct cookie / TCF vendor ids for the meta.
protected
correctAssociationIdsForBlocker(array<string|int, string> $post_names, string $mapName, string $association_post_type) : mixed
Parameters
- $post_names : array<string|int, string>
- $mapName : string
-
Can be
mapCookies
ormapTcfVendorConfigurations
- $association_post_type : string
doImportBlocker()
Import content blocker from JSON.
protected
doImportBlocker(array<string|int, mixed> $blockers) : mixed
Parameters
- $blockers : array<string|int, mixed>
handleCorruptBlocker()
Check missing meta of passed blocker.
protected
handleCorruptBlocker(array<string|int, mixed> $blocker, int $index) : mixed
Parameters
- $blocker : array<string|int, mixed>
- $index : int