Worked extension examples
These developer-facing recipes are kept beside the package contract. Replace the example values with the site-specific records and data objects used by the calling workflow.
<?phpdeclare(strict_types=1);final class ExamplePublicIndexProviderImplementation implements \Capell\ThemeSwitchboard\Contracts\PublicIndexProvider{ /** @return list<SwitchboardIndexItemData> */ public function items(): array { throw new LogicException('Implement this package contract for the calling site.'); }}
app()->bind(\Capell\ThemeSwitchboard\Contracts\PublicIndexProvider::class, ExamplePublicIndexProviderImplementation::class);