I have made a custom action which have a configuration form:
class MyAction extends ConfigurableActionBase Thus, I have the opportunity to create a form that allows the user to set some options. This form is created inside
public function buildConfigurationForm(array $form, FormStateInterface $form_state) I need to get the list of the selected items that will be processed at this stage in order for me to exclude some option in the configuration form. In my use case, I need to exclude some option depending of the bundle of the selected entities (by my VBO view)