Constructor.
Description
See also
Parameters
- $slug
-
(string) (Required) Page slug.
- $manager
-
(Leaves_And_Love\Plugin_Lib\Components\Admin_Pages) (Required) Admin page manager instance.
- $model_manager
-
(awsmug\Torro_Forms\DB_Objects\Submissions\Submission_Manager) (Required) Model manager instance.
Source
File: src/db-objects/submissions/submissions-list-page.php
public function __construct( $slug, $manager, $model_manager ) { $this->list_table_class_name = Submissions_List_Table::class; $this->edit_page_slug = $manager->get_prefix() . 'edit_submission'; $this->icon_url = 'dashicons-tag'; parent::__construct( $slug, $manager, $model_manager ); if ( ! empty( $_GET['page'] ) && $slug === $_GET['page'] && ! empty( $_GET['form_id'] ) ) { /* translators: %s: form title */ $this->title = sprintf( __( 'Submissions for form “%s”', 'torro-forms' ), get_the_title( (int) $_GET['form_id'] ) ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |