This commit is contained in:
CI 2024-05-15 21:27:24 +00:00
parent 8153531510
commit 015fccfcac
3 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View file

@ -1862,6 +1862,7 @@
<a id="__codelineno-1-40" name="__codelineno-1-40" href="#__codelineno-1-40"></a><span class="p">}</span>
</code></pre></div>
<h2 id="creating-custom-block">Creating custom block</h2>
<p>The easy way is to run: <code>php bin/console make:builder-block</code>.</p>
<p>First, create a service which extends <code>App\Core\BuilderBlock\BuilderBlock</code> and tagged <code>builder_block.widget</code>.
Then, implement the method <code>configure</code> as below.</p>
<div class="highlight"><span class="filename">src/BuilderBlock/CustomBlock.php</span><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="k">namespace</span> <span class="nx">App\BuilderBlock</span><span class="p">;</span>