HasState
trait HasState (View source)
Properties
protected Closure|null | $afterStateHydrated | ||
protected Closure[] | $afterStateUpdated | ||
protected Closure|null | $beforeStateDehydrated | ||
protected mixed | $defaultState | ||
protected Closure|null | $dehydrateStateUsing | ||
protected Closure|null | $mutateDehydratedStateUsing | ||
protected Closure|null | $mutateStateForValidationUsing | ||
protected bool | $hasDefaultState | ||
protected bool|Closure | $isDehydrated | ||
protected bool|Closure | $isDehydratedWhenHidden | ||
protected string|null | $statePath | ||
protected string | $cachedAbsoluteStatePath | ||
protected string | $stripCharacters | ||
protected string[] | $cachedStripCharacters |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
HasState
clearAfterStateUpdatedHooks()
No description
HasState
callAfterStateHydrated()
No description
HasState
callAfterStateUpdated()
No description
protected void
callAfterStateUpdatedHook(Closure $hook)
No description
HasState
callBeforeStateDehydrated()
No description
HasState
default(mixed $state)
No description
HasState
dehydrated(bool|Closure $condition = true)
No description
HasState
dehydratedWhenHidden(bool|Closure $condition = true)
No description
array
getStateToDehydrate()
No description
void
dehydrateState(array $state, bool $isDehydrated = true)
No description
void
hydrateState(array|null $hydratedDefaultState, bool $andCallHydrationHooks = true)
No description
void
fill()
No description
void
hydrateDefaultState(array|null $hydratedDefaultState)
No description
void
fillStateWithNull()
No description
mixed
mutateDehydratedState(mixed $state)
No description
mixed
mutateStateForValidation(mixed $state)
No description
protected mixed
stripCharactersFromState(mixed $state)
No description
bool
mutatesDehydratedState()
No description
bool
mutatesStateForValidation()
No description
bool
hasStripCharacters()
No description
HasState
state(mixed $state)
No description
HasState
statePath(string|null $path)
No description
mixed
getDefaultState()
No description
mixed
getState()
No description
mixed
getOldState()
No description
string
getStatePath(bool $isAbsolute = true)
No description
bool
hasStatePath()
No description
protected bool
hasDefaultState()
No description
bool
isDehydrated()
No description
bool
isDehydratedWhenHidden()
No description
bool
isHiddenAndNotDehydrated()
No description
Get
getGetCallback()
No description
Set
getSetCallback()
No description
string
generateRelativeStatePath(Component $path = '', bool $isAbsolute = false)
No description
protected void
flushCachedAbsoluteStatePath()
No description
HasState
stripCharacters(string|array|Closure|null $characters)
No description
array
getStripCharacters()
No description