HasState
trait HasState (View source)
Properties
protected Closure|null | $afterStateHydrated | ||
protected Closure|null | $afterStateUpdated | ||
protected Closure|null | $beforeStateDehydrated | ||
protected | $defaultState | ||
protected Closure|null | $dehydrateStateUsing | ||
protected Closure|null | $mutateDehydratedStateUsing | ||
protected bool | $hasDefaultState | ||
protected bool|Closure | $isDehydrated | ||
protected string|null | $statePath |
Methods
callAfterStateHydrated()
No description
callAfterStateUpdated()
No description
callBeforeStateDehydrated()
No description
dehydrated(bool|Closure $condition = true)
No description
array
getStateToDehydrate()
No description
void
dehydrateState(array $state)
No description
void
hydrateState(array|null $hydratedDefaultState)
No description
void
fill()
No description
void
hydrateDefaultState(array|null $hydratedDefaultState)
No description
void
fillStateWithNull()
No description
mutateDehydratedState($state)
No description
bool
mutatesDehydratedState()
No description
getDefaultState()
No description
getState()
No description
getOldState()
No description
string
getStatePath(bool $isAbsolute = true)
No description
bool
hasDefaultState()
No description
bool
isDehydrated()
No description
getGetCallback()
No description
getSetCallback()
No description
string
generateRelativeStatePath(Component $path, bool $isAbsolute = false)
No description
Details
HasState
callAfterStateHydrated()
No description
HasState
callAfterStateUpdated()
No description
HasState
callBeforeStateDehydrated()
No description
HasState
default($state)
No description
HasState
dehydrated(bool|Closure $condition = true)
No description
array
getStateToDehydrate()
No description
void
dehydrateState(array $state)
No description
void
hydrateState(array|null $hydratedDefaultState)
No description
void
fill()
No description
void
hydrateDefaultState(array|null $hydratedDefaultState)
No description
void
fillStateWithNull()
No description
mutateDehydratedState($state)
No description
bool
mutatesDehydratedState()
No description
HasState
state($state)
No description
HasState
statePath(string|null $path)
No description
getDefaultState()
No description
getState()
No description
getOldState()
No description
string
getStatePath(bool $isAbsolute = true)
No description
protected bool
hasDefaultState()
No description
bool
isDehydrated()
No description
protected Closure
getGetCallback()
No description
protected Closure
getSetCallback()
No description
protected string
generateRelativeStatePath(Component $path, bool $isAbsolute = false)
No description