if ( !
$block ) { // This will get rejected in ::get_item().
return true;
} $schema = array
( 'type' => 'object',
'properties' =>
$block->
get_attributes(),
'additionalProperties' => false,
);
return rest_sanitize_value_from_schema( $value,
$schema );
},
),
'post_id' => array
( 'description' =>
__( 'ID of the post context.'
),
'type' => 'integer',
),
),
),
'schema' => array
( $this, 'get_public_item_schema'
),
) );
}