ftc_notice_helper = $ftc_notice_helper; } /** * Returns whether this task is completed. * * @return bool Whether this task is completed. */ public function get_is_completed(): bool { return $this->ftc_notice_helper->is_first_time_configuration_finished( true ); } /** * Returns the task's link. * * @return string|null */ public function get_link(): ?string { return \self_admin_url( 'admin.php?page=wpseo_dashboard#/first-time-configuration' ); } /** * Returns the task's call to action entry. * * @return Call_To_Action_Entry|null */ public function get_call_to_action(): ?Call_To_Action_Entry { return new Call_To_Action_Entry( \__( 'Start configuration', 'wordpress-seo' ), 'link', $this->get_link(), ); } /** * Returns the task's copy set. * * @return string|null */ public function get_copy_set(): Copy_Set { return new Copy_Set( \__( 'Complete the first time configuration', 'wordpress-seo' ), '
' . \sprintf( /* translators: %s expands to Yoast SEO */ \__( 'Skipping setup limits how much %s can help you. Completing it makes sure the core settings are working in your favor.', 'wordpress-seo' ), 'Yoast SEO', ) . '
', ); } }