<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_all_links_in_chain(self):
 """Return all links in the chain of trust, including the target task. By default, we're checking a task and all its dependencies back to the tree, so the full chain is ``self.links`` + ``self``. However, we also support checking the decision task itself. In that case, we populate the decision task as a link in ``self.links``, and we don't need to add another check for ``self``. Returns: list: of all ``LinkOfTrust``s to verify. """

        if self.is_decision() and self.get_link(self.task_id):
            return self.links
        return [self] + self.links