Back to WebAssetRegistryInterface class

Method exists

public bool
exists
(string $type, string $name)
Check whether the asset exists in the registry.
Parameters
  • string $type Asset type, script or style etc
  • string $name Asset name
Returns
  • bool
Since
  • 4.0.0

Method exists - Source code

/**
 * Check whether the asset exists in the registry.
 *
 * @param   string  $type  Asset type, script or style etc
 * @param   string  $name  Asset name
 *
 * @return  boolean
 *
 * @since   4.0.0
 */
public function exists(string $type, string $name) : bool;