protected function formatFlashMessage(string $type) : string { $message = [parent::formatFlashMessage($type)]; $submitted = $this->isSubmitted(); if ($submitted instanceof Nette\ComponentModel\Component && $submitted->getParent() === $this['action']) { array_unshift($message, 'orm'); } return implode('.', $message); }