Aggregate.php
3 days ago
BeaverBuilderGroups.php
3 days ago
BuddyPressGroups.php
3 days ago
DefaultGroups.php
3 days ago
EventsCalendarGroups.php
3 days ago
GravityFormsGroups.php
3 days ago
JetEngineGroups.php
3 days ago
MediaLibraryAssistantGroups.php
3 days ago
MetaBoxGroups.php
3 days ago
WooCommerceGroups.php
3 days ago
GravityFormsGroups.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Admin\MenuGroupFactory; |
| 6 | |
| 7 | use AC\Admin\MenuGroupFactory; |
| 8 | use AC\Admin\Type\MenuGroup; |
| 9 | use AC\TableScreen; |
| 10 | use ACA; |
| 11 | |
| 12 | class GravityFormsGroups implements MenuGroupFactory |
| 13 | { |
| 14 | public function create(TableScreen $table_screen): ?MenuGroup |
| 15 | { |
| 16 | if ($table_screen instanceof ACA\GravityForms\TableScreen\Entry) { |
| 17 | return new MenuGroup( |
| 18 | 'gravity_forms', |
| 19 | sprintf('%s - %s', __('Gravity Forms'), __('Entries', 'codepress-admin-columns')), |
| 20 | 20 |
| 21 | ); |
| 22 | } |
| 23 | |
| 24 | return null; |
| 25 | } |
| 26 | |
| 27 | } |
| 28 |