Documentation

LinkShortcode
in package
Uses UtilsProvider

Shortcode for:

  • Link/Button to edit consent
  • Link/Button to view history of consent
  • Link/Button to revoke consent

There is also a UI shortcode builder: linkForm.tsx

Table of Contents

Constants

ALLOWED_TAGS  = [self::DEFAULT_TAG, 'button']
ALLOWED_TYPES  = ['history', 'revoke', 'change']
BUTTON_CLICKED_IDENTIFIER  = 'shortcode_revoke'
DEFAULT_TAG  = 'a'
TAG  = 'rcb-consent'

Methods

getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
render()  : string
Render shortcode HTML and enqueue scripts and styles.

Constants

ALLOWED_TAGS

public mixed ALLOWED_TAGS = [self::DEFAULT_TAG, 'button']

ALLOWED_TYPES

public mixed ALLOWED_TYPES = ['history', 'revoke', 'change']

BUTTON_CLICKED_IDENTIFIER

public mixed BUTTON_CLICKED_IDENTIFIER = 'shortcode_revoke'

Methods

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

render()

Render shortcode HTML and enqueue scripts and styles.

public static render(mixed $atts) : string
Parameters
$atts : mixed
Return values
string

        
On this page

Search results