\DevOwl\RealCookieBanner\importImportBlocker

Trait to handle the importer for content blocker in the `Import` class.

Summary

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

Methods

doImportBlocker()

doImportBlocker(array  $blockers)

Import content blocker from JSON.

Parameters

array $blockers

correctAssociationIdsForBlocker()

correctAssociationIdsForBlocker(array<mixed,string>  $post_names,string  $mapName,string  $association_post_type)

Fetch the correct cookie / TCF vendor ids for the meta.

Parameters

array<mixed,string> $post_names
string $mapName

Can be mapCookies or mapTcfVendorConfigurations

string $association_post_type

handleCorruptBlocker()

handleCorruptBlocker(array  $blocker,integer  $index)

Check missing meta of passed blocker.

Parameters

array $blocker
integer $index