BlockType
class BlockType (View source)
Methods
static BlockType|null
getByHandle(string $btHandle)
Get a BlockType given its handle.
static BlockType
installBlockType(string $btHandle, Package|Package|string|false $pkg = false)
Install a BlockType that is passed via a btHandle string. The core or override directories are parsed.
static string|null
getBlockTypeMappedClass(string $btHandle, string|false $pkgHandle = false)
Return the class file that this BlockType uses.
static
clearCache()
Clears output and record caches.
static BlockType
Details
static BlockType|null
getByHandle(string $btHandle)
Get a BlockType given its handle.
static BlockType|null
getByID(int $btID)
Get a BlockType given its ID.
static BlockType
installBlockType(string $btHandle, Package|Package|string|false $pkg = false)
Install a BlockType that is passed via a btHandle string. The core or override directories are parsed.
static string|null
getBlockTypeMappedClass(string $btHandle, string|false $pkgHandle = false)
Return the class file that this BlockType uses.
static
clearCache()
Clears output and record caches.
static BlockType
installBlockTypeFromPackage(mixed $btHandle, mixed $pkg)
deprecated
deprecated
No description