Fork me on GitHub

LastFilter

In package com.mitchellbosecke.pebble.extension.core

public class LastFilter extends Object implements Filter

Returns the last element of a collection

Constructors

public LastFilter()
Parameters:
  • No parameters

Methods

public List<String> getArgumentNames()
Parameters:
  • No parameters
public Object apply(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
Parameters: