You are here

protected function WorkflowD7Base::getSetting in Workflow 7.2

Same name and namespace in other branches
  1. 7 includes/Field/WorkflowD7Base.php \WorkflowD7Base::getSetting()

File

includes/Field/WorkflowD7Base.php, line 54
Contains workflow\includes\Field\WorkflowD7Base.

Class

WorkflowD7Base

Code

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];
  }
}