Blocks

Script
in package

Class used to enqueue a block specific script.

Table of Contents

Properties

$args  : array<string|int, mixed>
Script arguments.
$deps  : array<string|int, mixed>
Script dependencies.
$handle  : string
Script handle.
$src  : string
Script source URL.
$ver  : string
Script version.

Methods

__construct()  : mixed
Constructor.
__get()  : mixed
Getter for the script properties.

Properties

$args

Script arguments.

private array<string|int, mixed> $args

$deps

Script dependencies.

private array<string|int, mixed> $deps

Methods

__construct()

Constructor.

public __construct(string $handle, string $src[, array<string|int, mixed> $deps = array() ][, string $ver = '1' ]) : mixed
Parameters
$handle : string

Script handle.

$src : string

Script source URL.

$deps : array<string|int, mixed> = array()

Script dependencies.

$ver : string = '1'

Script version.

__get()

Getter for the script properties.

public __get(string $name) : mixed
Parameters
$name : string

Property name.


        
On this page

Search results