Block_Controller implements Registerable, Standard_Service

Block controller.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service

Table of Contents

$blocks  : array<string|int, mixed>
Blocks.
$plugin  : Plugin
Plugin.
__construct()  : mixed
Constructor.
register()  : void
Init our blocks.
register_blocks()  : void
Register the blocks.
register_blocks_category()  : array<string|int, mixed>
Registers the blocks category.

Properties

Methods

__construct()

Constructor.

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

The plugin.

Tags
Return values
mixed

register()

Init our blocks.

public register() : void
Tags
Return values
void

register_blocks()

Register the blocks.

public register_blocks() : void
Tags
Return values
void

register_blocks_category()

Registers the blocks category.

public register_blocks_category(array<string|int, mixed> $categories) : array<string|int, mixed>
Parameters
$categories : array<string|int, mixed>

The categories.

Tags
Return values
array<string|int, mixed>

Search results