Method | Description | |
---|---|---|
__construct ( string $handle, string $url, array $dependencies = [], string | null $version = '', string $media = 'all' ) | Constructor. Sets up the properties. | |
__toString ( ) : string | Returns the handle. | |
add_conditional ( string $conditional ) : static | Adds the given conditional to the style. | |
dependencies ( ) : string[] | Returns the dependencies. | |
from_location ( string $handle, |
Returns a new style object, instantiated according to the given arguments. | |
handle ( ) : string | Returns the handle. | |
media ( ) : string | Returns the style media data. | |
url ( ) : string | Returns the file URL. | |
version ( ) : string | null | Returns the file version. |
public __construct ( string $handle, string $url, array $dependencies = [], string | null $version = '', string $media = 'all' ) | ||
$handle | string | The handle. |
$url | string | The public URL for the directory containing the file. |
$dependencies | array | Optional. The dependencies. Defaults to empty array. |
$version | string | null | Optional. Version of the file. Defaults to empty string. |
$media | string | Optional. Style media data. Defaults to 'all'. |
public __toString ( ) : string | ||
return | string | The handle. |
public add_conditional ( string $conditional ) : static | ||
$conditional | string | Conditional string. |
return | static | Style instance. |
public dependencies ( ) : string[] | ||
return | string[] | The dependencies. |
public static from_location ( string $handle, |
||
$handle | string | The handle. |
$location | Location object. | |
$dependencies | array | Optional. The dependencies. Defaults to empty array. |
$version | string | null | Optional. Version of the file. Defaults to empty string. |
$media | string | Optional. Style media data. Defaults to 'all'. |
return | static | Style object. |