5 changed files with 76 additions and 10 deletions
@ -0,0 +1,14 @@ |
|||
<?php |
|||
|
|||
namespace AXEWEB_Blocks\Blocks\<%= ownerClass %>\<%= blockClassModel %>\Helpers; |
|||
|
|||
class <%= blockClassModel %>_API { |
|||
|
|||
static function prepare_args( $args = [] ) { |
|||
|
|||
// $args = array_merge( [], $args ); |
|||
|
|||
return $args; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
<?php |
|||
|
|||
namespace AXEWEB_Blocks\Blocks\<%= ownerClass %>\<%= blockClassModel %>\Helpers; |
|||
|
|||
/** |
|||
* Component's default args. |
|||
*/ |
|||
|
|||
class <%= blockClassModel %>_Defaults { |
|||
public static function default_args(): array { |
|||
return [ |
|||
'title' => '<%= title %>', |
|||
]; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue