BlockScriptManager
extends ScriptManager
in package
Table of Contents
- $isScriptDebug : bool
- $scriptDependencies : array<string|int, string>
- $styleDependencies : array<string|int, mixed>
- __construct() : mixed
- addDependency() : mixed
- addStyleDependency() : mixed
- enqueue() : mixed
- register() : mixed
- registerBlockCategory() : mixed
- scriptUrl() : mixed
- getDatepickerLocale() : string
- locateDatepickFile() : string|false
- registerBlock() : mixed
- registerDatepickerLocalization() : mixed
- registerStyles() : mixed
Properties
$isScriptDebug
protected
bool
$isScriptDebug
= false
$scriptDependencies
protected
array<string|int, string>
$scriptDependencies
= array('jquery')
$styleDependencies
protected
array<string|int, mixed>
$styleDependencies
= array()
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addDependency()
public
addDependency(mixed $dependency) : mixed
Parameters
- $dependency : mixed
Return values
mixed —addStyleDependency()
public
addStyleDependency(mixed $dependency) : mixed
Parameters
- $dependency : mixed
Return values
mixed —enqueue()
public
enqueue() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —registerBlockCategory()
public
registerBlockCategory(mixed $categories) : mixed
Parameters
- $categories : mixed
Return values
mixed —scriptUrl()
public
scriptUrl(mixed $relativePath) : mixed
Parameters
- $relativePath : mixed
Return values
mixed —getDatepickerLocale()
protected
getDatepickerLocale([string $locale = null ]) : string
Parameters
- $locale : string = null
-
Optional.
Return values
string —locateDatepickFile()
protected
locateDatepickFile(string $theme) : string|false
Parameters
- $theme : string
Return values
string|false —registerBlock()
protected
registerBlock(string $blockName, string $renderFunction, array<string|int, mixed> $attributes) : mixed
Parameters
- $blockName : string
- $renderFunction : string
- $attributes : array<string|int, mixed>
Tags
Return values
mixed —registerDatepickerLocalization()
protected
registerDatepickerLocalization() : mixed
Return values
mixed —registerStyles()
protected
registerStyles() : mixed