From dcaed4a12d68f04ca9ff181e24fbf5860eba27ed Mon Sep 17 00:00:00 2001 From: Kevin Wellmann Date: Sun, 5 May 2024 14:04:00 +0200 Subject: [PATCH] improve doc for BaseBlock::setView --- src/BaseBlock.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BaseBlock.php b/src/BaseBlock.php index 6bcbaac..45dcd15 100644 --- a/src/BaseBlock.php +++ b/src/BaseBlock.php @@ -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. *