Error in creating custom block templates

How can I create a block template as I have seen a tutorial Gutenberg block templates and trying to implement the same but I am having error in registering code. I have added the same code in functions.php

add_action( ‘init’, function() {
$args = array(
‘public’ => true,
‘label’ => ‘News’,
‘show_in_rest’ => true,
‘template_lock’ => ‘all’,
‘template’ => array(
array( ‘core/paragraph’, array(
‘placeholder’ => ‘Breaking News’,
) ),
array( ‘core/image’, array(
‘align’ => ‘right’,
) ),

} );

Hello, your issue looks like general WordPress issue.

I kindly suggest you to use forums to find a solution.

Kind Regards, Roman.
aThemes Support