Img extends Node
Table of Contents
Methods
- changeNodeType() : array<string|int, mixed>
- Change node type if is styleImg type.
- getHandlerJS() : string
- Get class - frontend handler.
- getNode() : array<string|int, mixed>
- Get data for this node.
- getSearchableNode() : array<string|int, mixed>
- This node may participate in searching.
- saveNode() : void
- Save data for this node.
Methods
changeNodeType()
Change node type if is styleImg type.
public
static changeNodeType(array<string|int, mixed> $node, Block $block) : array<string|int, mixed>
Parameters
- $node : array<string|int, mixed>
-
Selector.
- $block : Block
-
Block instance.
Return values
array<string|int, mixed>getHandlerJS()
Get class - frontend handler.
public
static getHandlerJS() : string
Return values
stringgetNode()
Get data for this node.
public
static getNode(Block $block, string $selector) : array<string|int, mixed>
Parameters
- $block : Block
-
Block instance.
- $selector : string
-
Selector.
Return values
array<string|int, mixed>getSearchableNode()
This node may participate in searching.
public
static getSearchableNode(Block $block, string $selector) : array<string|int, mixed>
Parameters
- $block : Block
-
Block instance.
- $selector : string
-
Selector.
Return values
array<string|int, mixed>saveNode()
Save data for this node.
public
static saveNode(Block $block, string $selector, array<string|int, mixed> $data) : void
Parameters
- $block : Block
-
Block instance.
- $selector : string
-
Selector.
- $data : array<string|int, mixed>
-
Data array.