| Total Complexity | 8 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class AbstractDocsMenuPage extends AbstractMenuPage |
||
| 13 | { |
||
| 14 | use GraphQLAPIMenuPageTrait, OpenInModalMenuPageTrait, UseTabpanelMenuPageTrait; |
||
| 15 | |||
| 16 | public function print(): void |
||
| 24 | <?php |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Classes to add to the output <div> |
||
| 29 | * |
||
| 30 | * @return string[] |
||
| 31 | */ |
||
| 32 | protected function getDivClasses(): array |
||
| 33 | { |
||
| 34 | $classes = []; |
||
| 35 | if ($this->openInModalWindow()) { |
||
| 36 | $classes[] = 'modal-window-content-wrapper'; |
||
| 37 | } |
||
| 38 | return $classes; |
||
| 39 | } |
||
| 40 | |||
| 41 | abstract protected function getContentToPrint(): string; |
||
| 42 | |||
| 43 | protected function openInModalWindow(): bool |
||
| 44 | { |
||
| 45 | return false; |
||
| 46 | } |
||
| 47 | |||
| 48 | protected function useTabpanelForContent(): bool |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Enqueue the required assets and initialize the localized scripts |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | */ |
||
| 58 | protected function enqueueAssets(): void |
||
| 74 | } |
||
| 75 | } |
||
| 77 |