function is an attribute of next.
Name of the function to be called next to an action such as an entity's form submission.