current_page_helper = $current_page_helper; $this->promotion_manager = $promotion_manager; $this->product_helper = $product_helper; } /** * Returns the ID. * * @return string The ID. */ public function get_id() { return self::ID; } /** * Returns the requested pagination priority. Lower means earlier. * * @return int The priority. */ public function get_priority() { return 10; } /** * Returns whether this introduction should show. * * @return bool Whether this introduction should show. */ public function should_show() { return $this->current_page_helper->is_yoast_seo_page() && ! $this->product_helper->is_premium() && $this->promotion_manager->is( 'black-friday-promotion' ); } }