You are here

function gutenberg_register_block_core_block in Gutenberg 8

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

Registers the `core/block` block.

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

File

vendor/gutenberg/block-library/blocks/block.php, line 35

Code

function gutenberg_register_block_core_block() {
  register_block_type('core/block', array(
    'attributes' => array(
      'ref' => array(
        'type' => 'number',
      ),
    ),
    'render_callback' => 'gutenberg_render_block_core_block',
  ));
}