renderHiddenId(); } /** * Render a hidden form element with the progress id */ public function renderHiddenId(): string { $attributes = [ 'id' => 'progress_key', 'name' => $this->getName(), 'type' => 'hidden', 'value' => $this->getValue(), ]; return sprintf( 'createAttributesString($attributes), $this->getInlineClosingBracket() ); } protected function getName(): string { return 'UPLOAD_IDENTIFIER'; } protected function getValue(): string { return uniqid(); } }