Urls
class Urls (View source)
\@package Helpers
Methods
Gets a full URL to an icon for a particular application.
Get the package's URL.
Gets a full URL to the directory containing all of a block's items, including JavaScript, tools, icons, etc.
Get the URL of the "auto.js" file of a block type, to be loaded when adding/editing a block.
Get the URL of the "auto.css" file of a block type, to be loaded when adding/editing a block.
Details
string
getPackageIconURL(Package $pkg)
Gets a full URL to an icon for a particular application.
mixed
getPackageURL(Package $pkg)
Get the package's URL.
string
getToolsURL(string $tool, string $pkgHandle = null)
deprecated
deprecated
No description
string
getBlockTypeIconURL(BlockType $bt)
Gets a full URL to an icon for a particular block type.
string
getBlockTypeAssetsURL(BlockType $bt, bool|string $file = false)
Gets a full URL to the directory containing all of a block's items, including JavaScript, tools, icons, etc.
..
string
getBlockTypeJavaScriptURL(BlockType $bt)
Get the URL of the "auto.js" file of a block type, to be loaded when adding/editing a block.
string
getBlockTypeCssURL(BlockType $bt)
Get the URL of the "auto.css" file of a block type, to be loaded when adding/editing a block.
string
getBlockTypeToolsURL(BlockType $bt)
deprecated
deprecated
No description