class-yoast-modal.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. */
  7. // Mark this file as deprecated.
  8. _deprecated_file( __FILE__, 'WPSEO 9.2' );
  9. /**
  10. * Class to implement a React modal.
  11. *
  12. * @deprecated 9.2
  13. */
  14. class Yoast_Modal {
  15. /**
  16. * Class constructor.
  17. *
  18. * @deprecated 9.2
  19. */
  20. public function __construct() {
  21. _deprecated_function( __METHOD__, '9.2' );
  22. }
  23. /**
  24. * Enqueues the assets needed for the modal.
  25. *
  26. * @deprecated 9.2
  27. *
  28. * @return void
  29. */
  30. public function enqueue_assets() {
  31. _deprecated_function( 'Yoast_Modal::enqueue_assets', '9.2' );
  32. }
  33. /**
  34. * Prints the modals configuration.
  35. *
  36. * @return void
  37. */
  38. public function print_localized_config() {
  39. _deprecated_function( 'Yoast_Modal::print_localized_config', '9.2' );
  40. }
  41. /**
  42. * Adds a single modal configuration to the modals configuration.
  43. *
  44. * @deprecated 9.2
  45. *
  46. * @param array $args The modal configuration arguments.
  47. *
  48. * @return void
  49. */
  50. public static function add( $args ) {
  51. _deprecated_function( 'Yoast_Modal::add', '9.2' );
  52. }
  53. /**
  54. * Gets the modals configuration.
  55. *
  56. * @deprecated 9.2
  57. *
  58. * @return void
  59. */
  60. public function get_config() {
  61. _deprecated_function( 'Yoast_Modal::get_config', '9.2' );
  62. }
  63. /**
  64. * Gets the default configuration for a modal.
  65. *
  66. * @deprecated 9.2
  67. *
  68. * @return void
  69. */
  70. public static function get_defaults() {
  71. _deprecated_function( 'Yoast_Modal::get_defaults', '9.2' );
  72. }
  73. }