File "CanCustomizeProcess.php"
Full Path: /home/tecassol/public_html/tecas-solar.ma/vendor/filament/actions/src/Concerns/CanCustomizeProcess.php
File size: 472 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Filament\Actions\Concerns;
use Closure;
trait CanCustomizeProcess
{
protected ?Closure $using = null;
public function using(?Closure $using): static
{
$this->using = $using;
return $this;
}
/**
* @param array<string, mixed> $parameters
*/
public function process(?Closure $default, array $parameters = []): mixed
{
return $this->evaluate($this->using ?? $default, $parameters);
}
}