Login_Form extends Abstract_Block

Login Form block

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

$block  : WP_Block
The block class.
$block_name  : string
The block nam.
$namespace  : string
Block namespace.
$plugin  : Plugin
Plugin.
__construct()  : mixed
Constructor.
enqueue_assets()  : void
Enqueue block assets.
register_block()  : void
Registers the block.
render()  : string|void
Render the block via PHP.
get_block_json_path()  : string
Get the block JSON path.
get_block_attributes()  : array<string|int, mixed>
Get block attributes definition

Properties

$block_name

The block nam.

protected string $block_name = 'login-form'
Tags

$namespace

Block namespace.

protected string $namespace = 'document-library-pro'
Tags

Methods

__construct()

Constructor.

public __construct(Plugin $plugin) : mixed
Parameters
$plugin : Plugin

The plugin.

Tags
Return values
mixed

enqueue_assets()

Enqueue block assets.

public enqueue_assets() : void
Tags
Return values
void

register_block()

Registers the block.

public register_block() : void
Tags
Return values
void

render()

Render the block via PHP.

public render(mixed $attributes, mixed $content, mixed $block) : string|void
Parameters
$attributes : mixed

The block attributes.

$content : mixed

The block content.

$block : mixed

The block.

Tags
Return values
string|void

get_block_json_path()

Get the block JSON path.

protected get_block_json_path() : string
Tags
Return values
string

get_block_attributes()

Get block attributes definition

private get_block_attributes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

Block attributes

Search results