$actions]); $static->configure(); return $static; } public function getLabel(): ?string { $label = $this->evaluate($this->label); return $this->shouldTranslateLabel ? __($label) : $label; } public function getActions(): array { $actions = []; foreach ($this->actions as $action) { $actions[$action->getName()] = $action->grouped(); } return $actions; } public function isHidden(): bool { $condition = $this->baseIsHidden(); if ($condition) { return true; } foreach ($this->getActions() as $action) { if ($action->isHidden()) { continue; } return false; } return true; } }