set_unique_id( $unique_id ); return $shortcode; } /** * @param string $name unused argument, just to make the method call human-readable in your code */ // @phpcs:ignore public static function post_selection_shortcode( string $unique_id, string $name ): Selection_Shortcode { $shortcode = new Selection_Shortcode( self::$post_selection_renderer ); $shortcode->set_unique_id( $unique_id ); return $shortcode; } // Deprecated methods. /** * @deprecated Use layout_shortcode() instead. * @param string $name unused argument, just to make the method call human-readable in your code */ // @phpcs:ignore public static function view_shortcode( string $unique_id, string $name ): View_Shortcode_Interface { return self::layout_shortcode( $unique_id, $name ); } /** * @deprecated Use post_selection_shortcode() instead. * @param string $name unused argument, just to make the method call human-readable in your code */ // @phpcs:ignore public static function card_shortcode( string $unique_id, string $name ): Card_Shortcode_Interface { return self::post_selection_shortcode( $unique_id, $name ); } }