Skip to content

Commit

Permalink
implement get_block_args method in Acf_Json_Block
Browse files Browse the repository at this point in the history
When extending `Acf_Json_Block` class, block registration data are
provided by the `block.json` file. The class implement the method
to return an empty array.
  • Loading branch information
petitphp committed Jul 2, 2024
1 parent 23e2262 commit 09864e9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classes/Blocks/Acf_Json_Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,13 @@ public function register(): void {
]
);
}

/**
* Block registration args loaded from `block.json` file.
*
* @return array
*/
public function get_block_args(): array {
return [];
}
}

0 comments on commit 09864e9

Please sign in to comment.