public function getActionMessages() {
        $messages = $this->getAttribute(ACTION_MESSAGES_KEY);
        if ($messages === null)
            $messages = [];
        $errors = $this->getActionErrors();

        return \array_merge($messages, $errors);
    }