abstract class BaseAction extends ViewComponent (View source)

Traits

Properties

static protected array $configurations from  Configurable
static protected array $importantConfigurations from  Configurable
protected string $evaluationIdentifier
protected array $evaluationParametersToRemove from  EvaluatesClosures
protected string $view from  ViewComponent
protected array $viewData from  ViewComponent
protected string $viewIdentifier
static protected array $propertyCache from  ViewComponent
static protected array $methodCache from  ViewComponent
protected bool|Closure $isDisabled from  CanBeDisabled
protected $authorization from  CanBeHidden
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected string|Closure|null $color from  HasColor
protected string|Closure|null $icon from  HasIcon
protected string|Closure|null $iconPosition from  HasIcon
protected Htmlable|Closure|null $label from  HasLabel
protected bool|Closure $isLabelHidden from  HasLabel
protected bool $shouldTranslateLabel from  HasLabel
protected string $name from  HasName
protected string|Closure|null $size from  HasSize
protected array $extraAttributes from  HasExtraAttributes

Methods

static 
configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

array
resolveEvaluationParameter(string $parameter, Closure $value)

No description

bool
isEvaluationParameterRemoved(string $parameter)

No description

view(string $view, array $viewData = [])

No description

array
extractPublicProperties()

No description

array
extractPublicMethods()

No description

viewData(array $data)

No description

string
getView()

No description

string
toHtml()

No description

View
render()

No description

disabled(bool|Closure $condition = true)

No description

bool
isDisabled()

No description

bool
isEnabled()

No description

authorize($abilities, Model|array|null $arguments = null)

No description

authorizeAny(string|array $abilities, Model|array|null $arguments = null)

No description

array
parseAuthorizationArguments(array $arguments)

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isHidden()

No description

bool
isAuthorized()

No description

color(string|Closure|null $color)

No description

from  HasColor
string|null
getColor()

No description

from  HasColor
icon(string|Closure|null $icon)

No description

from  HasIcon
iconPosition(string|Closure|null $position)

No description

from  HasIcon
string|null
getIcon()

No description

from  HasIcon
string|null
getIconPosition()

No description

from  HasIcon
disableLabel(bool|Closure $condition = true)

No description

from  HasLabel
label(Htmlable|Closure|null $label)

No description

from  HasLabel
translateLabel(bool $shouldTranslateLabel = true)

No description

from  HasLabel
Htmlable|null
getLabel()

No description

from  HasLabel
bool
isLabelHidden()

No description

from  HasLabel
name(string $name)

No description

from  HasName
string
getName()

No description

from  HasName
size(string|Closure|null $size)

No description

from  HasSize
string|null
getSize()

No description

from  HasSize
extraAttributes(array|Closure $attributes, bool $merge = false)

No description

array
getExtraAttributes()

No description

ComponentAttributeBag
getExtraAttributeBag()

No description

__construct(string $name)

No description

static BaseAction
make(string|null $name = null)

No description

static string|null
getDefaultName()

No description

withAttributes(array $attributes) deprecated

No description

Details

static configureUsing(Closure $callback, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $callback
Closure|null $during
bool $isImportant

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

evaluate($value, array $parameters = [], array $exceptParameters = [])

No description

Parameters

$value
array $parameters
array $exceptParameters

protected array getDefaultEvaluationParameters()

No description

Return Value

array

protected resolveEvaluationParameter(string $parameter, Closure $value)

No description

Parameters

string $parameter
Closure $value

protected bool isEvaluationParameterRemoved(string $parameter)

No description

Parameters

string $parameter

Return Value

bool

ViewComponent view(string $view, array $viewData = [])

No description

Parameters

string $view
array $viewData

Return Value

ViewComponent

protected array extractPublicProperties()

No description

Return Value

array

protected array extractPublicMethods()

No description

Return Value

array

ViewComponent viewData(array $data)

No description

Parameters

array $data

Return Value

ViewComponent

string getView()

No description

Return Value

string

string toHtml()

No description

Return Value

string

View render()

No description

Return Value

View

CanBeDisabled disabled(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeDisabled

bool isDisabled()

No description

Return Value

bool

bool isEnabled()

No description

Return Value

bool

CanBeHidden authorize($abilities, Model|array|null $arguments = null)

No description

Parameters

$abilities
Model|array|null $arguments

Return Value

CanBeHidden

CanBeHidden authorizeAny(string|array $abilities, Model|array|null $arguments = null)

No description

Parameters

string|array $abilities
Model|array|null $arguments

Return Value

CanBeHidden

protected array parseAuthorizationArguments(array $arguments)

No description

Parameters

array $arguments

Return Value

array

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isAuthorized()

No description

Return Value

bool

HasColor color(string|Closure|null $color)

No description

Parameters

string|Closure|null $color

Return Value

HasColor

string|null getColor()

No description

Return Value

string|null

HasIcon icon(string|Closure|null $icon)

No description

Parameters

string|Closure|null $icon

Return Value

HasIcon

HasIcon iconPosition(string|Closure|null $position)

No description

Parameters

string|Closure|null $position

Return Value

HasIcon

string|null getIcon()

No description

Return Value

string|null

string|null getIconPosition()

No description

Return Value

string|null

HasLabel disableLabel(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

HasLabel

HasLabel label(Htmlable|Closure|null $label)

No description

Parameters

Htmlable|Closure|null $label

Return Value

HasLabel

HasLabel translateLabel(bool $shouldTranslateLabel = true)

No description

Parameters

bool $shouldTranslateLabel

Return Value

HasLabel

Htmlable|null getLabel()

No description

Return Value

Htmlable|null

bool isLabelHidden()

No description

Return Value

bool

HasName name(string $name)

No description

Parameters

string $name

Return Value

HasName

string getName()

No description

Return Value

string

HasSize size(string|Closure|null $size)

No description

Parameters

string|Closure|null $size

Return Value

HasSize

string|null getSize()

No description

Return Value

string|null

HasExtraAttributes extraAttributes(array|Closure $attributes, bool $merge = false)

No description

Parameters

array|Closure $attributes
bool $merge

Return Value

HasExtraAttributes

array getExtraAttributes()

No description

Return Value

array

ComponentAttributeBag getExtraAttributeBag()

No description

Return Value

ComponentAttributeBag

final __construct(string $name)

No description

Parameters

string $name

static BaseAction make(string|null $name = null)

No description

Parameters

string|null $name

Return Value

BaseAction

static string|null getDefaultName()

No description

Return Value

string|null

BaseAction withAttributes(array $attributes) deprecated

deprecated Use `->extraAttributes()` instead.

No description

Parameters

array $attributes

Return Value

BaseAction