LeKoala\Dev\BlocksCreateTask
Assist in building blocks for your website
- Author: lekoala
Synopsis
class BlocksCreateTask
extends BuildTask
{
- // members
- protected string $title = "Create Blocks";
- protected string $description = 'Create block classes and styles based on your templates.';
- private static string $segment = 'BlocksCreateTask';
- // methods
- public void run()
- public static void migrateFromOldClass()
- protected string getScssFolder()
- protected void createStyles()
- protected void createBlockClass()
- public string getThemeDir()
- public boolean isAdminTheme()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $segment
protected
- $description
- $title
Methods
protected
public
- getThemeDir() — Get current theme dir (regardless of current theme set)
- isAdminTheme()
- migrateFromOldClass()
- run()