Skip to content

Commit

Permalink
improve doc for BaseBlock::setView
Browse files Browse the repository at this point in the history
  • Loading branch information
wellmann committed May 5, 2024
1 parent d1951be commit dcaed4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BaseBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public function render(array $attributes, string $content, ?WP_Block $block = nu
* Renders current block.
*
* @param string|null $file Absolute path to current blocks view file.
* * Passing `null` returns an empty string
* * Passing an empty string or non-existent file returns just the wrapper div (with child blocks if available)
* @param array $data Attributes saved in the editor plus any other variables added in the block class.
* @param string $wrapperTagName Block wrapper element tag name.
*
Expand Down

0 comments on commit dcaed4a

Please sign in to comment.