You appear to be a bot. Output may be restricted
Description
Registers the dynamic with boolean attributes block name.
Usage
REST_Block_Renderer_Controller_Test::register_dynamic_block_with_boolean_attributes();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/rest-api/rest-block-renderer-controller.php
Lines:
1 to 19 of 19
protected function register_dynamic_block_with_boolean_attributes() { register_block_type( self::$dynamic_block_with_boolean_attributes_block_name, array( 'attributes' => array( 'boolean_true_attribute' => array( 'type' => 'boolean', 'default' => true, ), 'boolean_false_attribute' => array( 'type' => 'boolean', 'default' => false, ), ), 'render_callback' => array( $this, 'render_test_block' ), ) ); }