class-admin-asset-location.php 488 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. */
  7. /**
  8. * Represents a way to determine an assets location.
  9. */
  10. interface WPSEO_Admin_Asset_Location {
  11. /**
  12. * Determines the URL of the asset on the dev server.
  13. *
  14. * @param WPSEO_Admin_Asset $asset The asset to determine the URL for.
  15. * @param string $type The type of asset. Usually JS or CSS.
  16. *
  17. * @return string The URL of the asset.
  18. */
  19. public function get_url( WPSEO_Admin_Asset $asset, $type );
  20. }