Recipe
API reference › HTML Core › Config › Recipe
Associates an identifiable theme recipe with its ordered cookbook.
By convention, the recipe name is prefixed with the theme identifier (for example, flowbite.button) so error
messages and diagnostics trace the originating theme without extra plumbing.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$cookbook readonly constructor | Cookbook | Ordered config calls applied by the recipe. | Recipe |
$name readonly constructor | string | Recipe identifier used to trace which recipe configured a component. | Recipe |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a named recipe with its cookbook. | Recipe |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $name, UIAwesome\Html\Core\Config\Cookbook $cookbook)Creates a named recipe with its cookbook.
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | Recipe identifier used to trace which recipe configured a component. |
$cookbook | Cookbook | Ordered config calls applied by the recipe. |
Throws
InvalidArgumentException: If the recipe name is empty or contains whitespace.