Issue #2190183 by damiankloip: Replace views_view_has_form_elements() with a hasFormElements() method on ViewExecutable.