trait HasComponents (View source)

Properties

protected array<string,class-string> $livewireComponents
protected class-string[] $pages
protected string[] $pageDirectories
protected string[] $pageNamespaces
protected class-string[] $clusters
protected string[] $clusterDirectories
protected string[] $clusterNamespaces
protected Cluster>,class-string[]> $clusteredComponents
protected class-string[] $resources
protected string[] $resourceDirectories
protected string[] $resourceNamespaces
protected Widget>[] $widgets
protected string[] $widgetDirectories
protected string[] $widgetNamespaces
protected bool|Closure $hasReadOnlyRelationManagersOnResourceViewPagesByDefault
protected bool|null $hasCachedComponents

Methods

pages(array $pages)

No description

resources(array $resources)

No description

string|null
getModelResource(Model $model)

No description

widgets(array $widgets)

No description

string
normalizeWidgetClass(WidgetConfiguration $widget)

No description

discoverPages(string $in, string $for)

No description

array
getPageDirectories()

No description

array
getPageNamespaces()

No description

discoverClusters(string $in, string $for)

No description

array
getClusterDirectories()

No description

array
getClusterNamespaces()

No description

discoverResources(string $in, string $for)

No description

array
getResourceDirectories()

No description

array
getResourceNamespaces()

No description

discoverWidgets(string $in, string $for)

No description

array
getWidgetDirectories()

No description

array
getWidgetNamespaces()

No description

discoverLivewireComponents(string $in, string $for)

No description

array
getPages()

No description

array
getResources()

No description

array
getWidgets()

No description

void
discoverComponents(string $baseClass, array $register, string|null $directory, string|null $namespace)

No description

livewireComponents(array $components)

No description

void
registerLivewireComponents()

No description

string
normalizeRelationManagerClass(RelationManagerConfiguration $manager)

No description

void
registerToCluster(string $component)

No description

void
queueLivewireComponentForRegistration(string $component)

No description

readOnlyRelationManagersOnResourceViewPagesByDefault(bool|Closure $condition = true)

No description

array
getClusteredComponents(string|null $cluster = null)

No description

bool
hasCachedComponents()

No description

void
cacheComponents()

No description

void
restoreCachedComponents()

No description

void
clearCachedComponents()

No description

string
getComponentCachePath()

No description

Details

HasComponents pages(array $pages)

No description

Parameters

array $pages

Return Value

HasComponents

HasComponents resources(array $resources)

No description

Parameters

array $resources

Return Value

HasComponents

string|null getModelResource(Model $model)

No description

Parameters

Model $model

Return Value

string|null

HasComponents widgets(array $widgets)

No description

Parameters

array $widgets

Return Value

HasComponents

protected string normalizeWidgetClass(WidgetConfiguration $widget)

No description

Parameters

WidgetConfiguration $widget

Return Value

string

HasComponents discoverPages(string $in, string $for)

No description

Parameters

string $in
string $for

Return Value

HasComponents

array getPageDirectories()

No description

Return Value

array

array getPageNamespaces()

No description

Return Value

array

HasComponents discoverClusters(string $in, string $for)

No description

Parameters

string $in
string $for

Return Value

HasComponents

array getClusterDirectories()

No description

Return Value

array

array getClusterNamespaces()

No description

Return Value

array

HasComponents discoverResources(string $in, string $for)

No description

Parameters

string $in
string $for

Return Value

HasComponents

array getResourceDirectories()

No description

Return Value

array

array getResourceNamespaces()

No description

Return Value

array

HasComponents discoverWidgets(string $in, string $for)

No description

Parameters

string $in
string $for

Return Value

HasComponents

array getWidgetDirectories()

No description

Return Value

array

array getWidgetNamespaces()

No description

Return Value

array

HasComponents discoverLivewireComponents(string $in, string $for)

No description

Parameters

string $in
string $for

Return Value

HasComponents

array getPages()

No description

Return Value

array

array getResources()

No description

Return Value

array

array getWidgets()

No description

Return Value

array

protected void discoverComponents(string $baseClass, array $register, string|null $directory, string|null $namespace)

No description

Parameters

string $baseClass
array $register
string|null $directory
string|null $namespace

Return Value

void

HasComponents livewireComponents(array $components)

No description

Parameters

array $components

Return Value

HasComponents

protected void registerLivewireComponents()

No description

Return Value

void

protected string normalizeRelationManagerClass(RelationManagerConfiguration $manager)

No description

Parameters

RelationManagerConfiguration $manager

Return Value

string

protected void registerToCluster(string $component)

No description

Parameters

string $component

Return Value

void

protected void queueLivewireComponentForRegistration(string $component)

No description

Parameters

string $component

Return Value

void

HasComponents readOnlyRelationManagersOnResourceViewPagesByDefault(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasComponents

bool hasReadOnlyRelationManagersOnResourceViewPagesByDefault()

No description

Return Value

bool

array getClusteredComponents(string|null $cluster = null)

No description

Parameters

string|null $cluster

Return Value

array

bool hasCachedComponents()

No description

Return Value

bool

void cacheComponents()

No description

Return Value

void

void restoreCachedComponents()

No description

Return Value

void

void clearCachedComponents()

No description

Return Value

void

string getComponentCachePath()

No description

Return Value

string