filter(), on any UI extension that you are implementing. Before a button is shown, that method is passed the uiClass, the id, and the payload. If
false, the button is not shown. If the method is unimplemented or it returns any value other than false, the button is shown.