def METHOD_NAME(self):
    """
    :return: The last (typically 5) contents (sorted by publication date).
    """
    subcategories = None
    category = self.query_params.get("category", "").strip()
    if category:
        category = get_object_or_404(Category, slug=category)
        subcategories = category.get_subcategories()
    subcategory = self.query_params.get("subcategory", "").strip()
    if subcategory:
        subcategories = [get_object_or_404(SubCategory, slug=subcategory)]
    tags = None
    tag = self.query_params.get("tag", "").strip()
    if tag:
        tags = [get_object_or_404(Tag, slug=slugify(self.query_params.get("tag")))]
    feed_length = settings.ZDS_APP["content"]["feed_length"]
    contents = PublishedContent.objects.last_contents(
        content_type=[self.content_type], subcategories=subcategories, tags=tags
    )[:feed_length]
    return contents