field = $field; $this->instance = $instance; // Properties for FieldItem. $this->entity = $entity; $this->entity_type = $entity_type; } public function getField() { return $this->field; } public function getInstance() { return $this->instance; } public function delete() { } protected function getSettings() { $settings = isset($this->instance['widget']['settings']) ? $this->instance['widget']['settings'] : array(); $field_info = self::settings(); return $settings += $field_info['workflow']['settings']; } protected function getSetting($key) { if (isset($this->instance['widget']['settings'][$key])) { return $this->instance['widget']['settings'][$key]; } else { $field_info = $this->settings(); return $field_info['workflow']['settings'][$key]; } } }