GravityKit\GravityCalendar\Gutenberg\Blocks\Block\Block
Block class extended by individual blocks
Since: 2.0
Source: includes/gutenberg/blocks/block.php:15
Details
- Kind:
class - Namespace:
GravityKit\GravityCalendar\Gutenberg\Blocks\Block
Methods
| Method | Description |
|---|---|
render() | Render block shortcode |
register() | Register block |
get_block_attributes() | Get block attributes |
Method Reference
render()
public static function render( $attributes=[] )
Render block shortcode
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$attributes | array | [] |
Returns
string
Since: 2.0
Source: includes/gutenberg/blocks/block.php:28
register()
public static function register()
Register block
Returns
void
Since: 2.0
Source: includes/gutenberg/blocks/block.php:39
get_block_attributes()
public static function get_block_attributes()
Get block attributes
Returns
array
See Also
Since: 2.0
Source: includes/gutenberg/blocks/block.php:61