Documentation

LoomPlugin
in package
implements Plugin

Table of Contents

Interfaces

Plugin

Properties

$extraStats  : mixed
$version  : mixed
$availableThemes  : mixed
$componentMap  : mixed
$customBlocks  : mixed
$customConfigurationFields  : mixed
$customLeadQuizFields  : mixed
$leadQuizActionsMap  : mixed

Methods

addAvailableTheme()  : void
addComponentBlockOverrides()  : void
addCustomBlock()  : mixed
addCustomConfigurationField()  : mixed
addCustomLeadQuizField()  : mixed
addLeadQuizAction()  : mixed
boot()  : void
getAvailableThemes()  : array<string|int, mixed>
getAvailableUrls()  : array<string|int, mixed>
getComponentForBlock()  : string|null
getCustomBlocks()  : array<string|int, mixed>
getCustomConfigurationFields()  : mixed
getCustomLeadQuizFields()  : array<string|int, mixed>
getId()  : string
getLeadQuizActions()  : array<string|int, mixed>
make()  : static
register()  : void
registerDefaultLeadQuizActions()  : void
renderCustomLeadQuizField()  : string
setAvailableThemes()  : void
setCustomConfigurationFields()  : mixed

Properties

$extraStats

public static mixed $extraStats = []

$availableThemes

protected static mixed $availableThemes = ['light' => 'light', 'dark' => 'dark', 'cupcake' => 'cupcake', 'bumblebee' => 'bumblebee', 'emerald' => 'emerald', 'corporate' => 'corporate', 'synthwave' => 'synthwave', 'retro' => 'retro', 'cyberpunk' => 'cyberpunk', 'valentine' => 'valentine', 'halloween' => 'halloween', 'garden' => 'garden', 'forest' => 'forest', 'aqua' => 'aqua', 'lofi' => 'lofi', 'pastel' => 'pastel', 'fantasy' => 'fantasy', 'wireframe' => 'wireframe', 'black' => 'black', 'luxury' => 'luxury', 'dracula' => 'dracula', 'cmyk' => 'cmyk', 'autumn' => 'autumn', 'business' => 'business', 'acid' => 'acid', 'lemonade' => 'lemonade', 'night' => 'night', 'coffee' => 'coffee', 'winter' => 'winter', 'dim' => 'dim', 'nord' => 'nord', 'sunset' => 'sunset']

$componentMap

protected static mixed $componentMap = ['call_to_action' => 'infactloom::content-block.call_to_action', 'horizontal_buttons' => 'infactloom::content-block.horizontal-buttons', 'hero' => 'infactloom::content-block.hero', 'composable_hero' => 'infactloom::content-block.composable_hero', 'image_next_to_text' => 'infactloom::content-block.image_next_to_text', 'quote' => 'infactloom::content-block.quote', 'reuseable_block' => 'infactloom::content-block.reuseable_block', 'rich_editor' => 'infactloom::content-block.rich_editor', 'row' => 'infactloom::content-block.row', 'global-popup' => 'infactloom::content-block.global-popup', 'lead_quiz' => 'infactloom::content-block.lead_quiz', 'text_next_to_image' => 'infactloom::content-block.text_next_to_image', 'divider' => 'infactloom::content-block.divider', 'image' => 'infactloom::content-block.image', 'countdown_timer' => 'infactloom::content-block.countdown_timer', 'custom_code' => 'infactloom::content-block.custom-code', 'variable_page_list' => 'infactloom::content-block.variable_page_list', 'carousel' => 'infactloom::content-block.carousel']

$customBlocks

protected static mixed $customBlocks = []

$customConfigurationFields

protected static mixed $customConfigurationFields = []

$customLeadQuizFields

protected static mixed $customLeadQuizFields = []

$leadQuizActionsMap

protected static mixed $leadQuizActionsMap = []

Methods

addAvailableTheme()

public static addAvailableTheme(string $name) : void
Parameters
$name : string

addComponentBlockOverrides()

public static addComponentBlockOverrides(array<string|int, mixed> $overrides) : void
Parameters
$overrides : array<string|int, mixed>

= [ 'call_to_action' => 'infactloom::content-block.call_to_action', 'hero' => 'infactloom::content-block.hero', 'image_next_to_text' => 'infactloom::content-block.image_next_to_text', 'quote' => 'infactloom::content-block.quote', 'reuseable_block' => 'infactloom::content-block.reuseable_block', 'rich_editor' => 'infactloom::content-block.rich_editor', 'row' => 'infactloom::content-block.row', 'text_next_to_image' => 'infactloom::content-block.text_next_to_image', ]

addCustomBlock()

public static addCustomBlock(string $uiComponent, Block $block) : mixed
Parameters
$uiComponent : string
$block : Block

addCustomConfigurationField()

public static addCustomConfigurationField(mixed $field) : mixed
Parameters
$field : mixed

addCustomLeadQuizField()

public static addCustomLeadQuizField(mixed $name, mixed $render[, mixed $backendConfigurationFields = [] ]) : mixed
Parameters
$name : mixed
$render : mixed
$backendConfigurationFields : mixed = []

addLeadQuizAction()

public static addLeadQuizAction(string $action, callable $function[, array<string|int, mixed> $formSchema = [] ]) : mixed
Parameters
$action : string
$function : callable
$formSchema : array<string|int, mixed> = []

boot()

public boot(Panel $panel) : void
Parameters
$panel : Panel

getAvailableThemes()

public static getAvailableThemes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAvailableUrls()

public static getAvailableUrls() : array<string|int, mixed>
Return values
array<string|int, mixed>

getComponentForBlock()

public static getComponentForBlock(mixed $blockName) : string|null
Parameters
$blockName : mixed
Return values
string|null

getCustomBlocks()

public static getCustomBlocks() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCustomConfigurationFields()

public static getCustomConfigurationFields() : mixed

getCustomLeadQuizFields()

public static getCustomLeadQuizFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getId()

public getId() : string
Return values
string

getLeadQuizActions()

public static getLeadQuizActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

make()

public static make([string $userModel = 'AppModelsUser' ]) : static
Parameters
$userModel : string = 'AppModelsUser'
Return values
static

register()

public register(Panel $panel) : void
Parameters
$panel : Panel

registerDefaultLeadQuizActions()

public static registerDefaultLeadQuizActions() : void

renderCustomLeadQuizField()

public static renderCustomLeadQuizField(mixed $block) : string
Parameters
$block : mixed
Return values
string

setAvailableThemes()

public static setAvailableThemes(array<string|int, mixed> $availableThemes) : void
Parameters
$availableThemes : array<string|int, mixed>

setCustomConfigurationFields()

public static setCustomConfigurationFields(mixed $fields) : mixed
Parameters
$fields : mixed

        
On this page

Search results