/** * {@inheritdoc} * * @todo Remove this and switch all usage of $form_state['section'] to * $form_state['type']. */ public function getFormState(ViewStorageInterface $view, $display_id, $js) { return array('section' => $this->type) + parent::getFormState($view, $display_id, $js); }
/** * {@inheritdoc} * * @todo Remove this and switch all usage of $form_state->get('section') to * $form_state->get('type'). */ public function getFormState(ViewEntityInterface $view, $display_id, $js) { $form_state = parent::getFormState($view, $display_id, $js); $form_state->set('section', $this->type); return $form_state; }
/** * {@inheritdoc} * * @todo Remove this and switch all usage of $form_state['section'] to * $form_state['type']. */ public function getFormState(ViewStorageInterface $view, $display_id, $js) { $form_state = parent::getFormState($view, $display_id, $js); $form_state['section'] = $this->type; return $form_state; }