function(array $cfg) { if ($this->path && (isset($cfg['type']) || isset($cfg['id']))) { return $this->path.'pid/.'.($cfg['id'] ?? $cfg['type']); } return null; }