You are here

function gutenberg_register_block_core_calendar in Gutenberg 8.2

Same name and namespace in other branches
  1. 8 vendor/gutenberg/block-library/blocks/calendar.php \gutenberg_register_block_core_calendar()

Registers the `core/calendar` block on server.

1 string reference to 'gutenberg_register_block_core_calendar'
calendar.php in vendor/gutenberg/block-library/blocks/calendar.php

File

vendor/gutenberg/block-library/blocks/calendar.php, line 54

Code

function gutenberg_register_block_core_calendar() {
  register_block_type_from_metadata(__DIR__ . '/calendar', array(
    'render_callback' => 'gutenberg_render_block_core_calendar',
  ));
}