You need to follow the docs. required_slots is a method within a FormValidationAction class.
required_slots
FormValidationAction