/** * Gets the configuration data for a given view & post * * @return object */ protected function prepareData() { $type = trim("{$this->view}/{$this->admin->route}", '/'); $data = $this->admin->data($type, $this->post); return $data; }