<?php interface FormStateInterface {} class FormState implements FormStateInterface {} class ConfigFormBase { public function submitForm(array &$form, FormStateInterface $form_state) { print "original"; } } trait ValidatableConfigFormTrait { public function submitForm(array &$form, FormStateInterface $form_state) { print "trait"; } } class MyForm extends ConfigFormBase { use ValidatableConfigFormTrait; } $form = []; (new MyForm())->submitForm($form, new FormState());
You have javascript disabled. You will not be able to edit any code.