Issue #2558243 by Berdir, tim.plunkett: Use a FormElement plugin instead of the deprecated hook_element_info()