Twig Components / Methods / related_first
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
related_first(name = null, direction = "both" publishedOnly = true) is a Twig filter to return the first of the returned related records.
|name||The related content's name or contenttype. If not set, it will fetch all related records.|
|direction||Limit relations to a direction. Default is "both"; see Relations and directions for more info.|
|publishedOnly||Return only related records that are published. Default is true|