public function appendActiveField($attribute, $model, $generator) { $key = $this->findValue($this->getModelKey($attribute, $model), $this->appendActiveFields); if ($key) { return $this->appendActiveFields[$key]($attribute, $model, $generator); } }