Elementor_Widget extends Widget_Base Uses Context
Base Elementor widget.
Table of Contents
- $context : array<string|int, mixed>
- Object context values.
- __construct() : mixed
- Class constructor.
- get_categories() : array<string|int, mixed>
- Gets widget categories.
- get_context() : mixed
- Gets object context values.
- get_icon() : string
- Gets widget icon.
- get_keywords() : array<string|int, mixed>
- Gets widget keywords.
- get_name() : string
- Gets widget name.
- get_title() : string
- Gets widget title.
- register_controls() : mixed
- Registers widget controls.
- render() : mixed
- Renders widget HTML.
Properties
$context
Object context values.
protected
array<string|int, mixed>
$context
= []
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $data = [] ][, array<string|int, mixed> $args = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
-
Widget data.
- $args : array<string|int, mixed> = null
-
Widget arguments.
Return values
mixed —get_categories()
Gets widget categories.
public
get_categories() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_context()
Gets object context values.
public
final get_context([string $name = null ][, mixed $default = null ]) : mixed
Parameters
- $name : string = null
-
Context name.
- $default : mixed = null
-
Default value.
Return values
mixed —get_icon()
Gets widget icon.
public
get_icon() : string
Return values
string —get_keywords()
Gets widget keywords.
public
get_keywords() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_name()
Gets widget name.
public
get_name() : string
Return values
string —get_title()
Gets widget title.
public
get_title() : string
Return values
string —register_controls()
Registers widget controls.
protected
register_controls() : mixed
Return values
mixed —render()
Renders widget HTML.
protected
render() : mixed