| Total Complexity | 7 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ModulesMenuPage extends AbstractTableMenuPage |
||
| 14 | { |
||
| 15 | use GraphQLAPIMenuPageTrait; |
||
| 16 | |||
| 17 | public const SCREEN_OPTION_NAME = 'graphql_api_modules_per_page'; |
||
| 18 | |||
| 19 | public function getMenuPageSlug(): string |
||
| 20 | { |
||
| 21 | return 'modules'; |
||
| 22 | } |
||
| 23 | |||
| 24 | protected function getHeader(): string |
||
| 27 | } |
||
| 28 | |||
| 29 | protected function hasViews(): bool |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function getScreenOptionLabel(): string |
||
| 35 | { |
||
| 36 | return \__('Modules', 'graphql-api'); |
||
| 37 | } |
||
| 38 | |||
| 39 | protected function getScreenOptionName(): string |
||
| 40 | { |
||
| 41 | return self::SCREEN_OPTION_NAME; |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function getTableClass(): string |
||
| 47 | } |
||
| 48 | |||
| 49 | // protected function showScreenOptions(): bool |
||
| 50 | // { |
||
| 51 | // return true; |
||
| 52 | // } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Enqueue the required assets and initialize the localized scripts |
||
| 56 | * |
||
| 57 | * @return void |
||
| 58 | */ |
||
| 59 | protected function enqueueAssets(): void |
||
| 71 | ); |
||
| 72 | } |
||
| 74 |