Initialize the form state and the entity before the first form build.
Overrides EntityFormController::init
public function init(array &$form_state) {
parent::init($form_state);
if ($display_id = \Drupal::request()->attributes
->get('display_id')) {
$this->displayID = $display_id;
}
// @todo Remove the need for this.
form_load_include($form_state, 'inc', 'views_ui', 'admin');
$form_state['view'] = $this->entity;
}