Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | public function renderBlock(array $attributes, string $content): string |
||
23 | { |
||
24 | // Append "-front" because this style must be used only on the client, not on the admin |
||
25 | $className = $this->getBlockClassName() . '-front'; |
||
26 | $blockContentPlaceholder = <<<EOT |
||
27 | <div class="%s"> |
||
28 | <h3 class="%s">%s</h3> |
||
29 | %s |
||
30 | </div> |
||
31 | EOT; |
||
32 | return sprintf( |
||
33 | $blockContentPlaceholder, |
||
34 | $className . ' ' . $this->getAlignClass(), |
||
35 | $className . '__title', |
||
36 | \__('Options', 'graphql-api'), |
||
37 | $this->getBlockContent($attributes, $content) |
||
38 | ); |
||
54 |