Skip to content
PHP Ecosystem
Explore

Recipe

API reference › HTML Core › Config › Recipe

final readonly classUIAwesome\Html\Core\Config\Recipe
Sourcesrc/Config/Recipe.php

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.

PropertyTypeDescriptionDefined by
$cookbook readonly constructorCookbookOrdered config calls applied by the recipe.Recipe
$name readonly constructorstringRecipe identifier used to trace which recipe configured a component.Recipe
MethodDescriptionDefined by
__construct()Creates a named recipe with its cookbook.Recipe
public function __construct(string $name, UIAwesome\Html\Core\Config\Cookbook $cookbook)

Creates a named recipe with its cookbook.

Parameters

ParameterTypeDescription
$namestringRecipe identifier used to trace which recipe configured a component.
$cookbookCookbookOrdered config calls applied by the recipe.

Throws