getRequest(); $user = $request->getUser(); $placeholder_id = celerity_generate_unique_node_id(); Javelin::initBehavior( 'placeholder', array( 'id' => $placeholder_id, 'text' => 'This is a placeholder', )); $form = id(new AphrontFormView()) ->setUser($user) ->appendChild( id(new AphrontFormTextControl()) ->setLabel('Placeholder') ->setID($placeholder_id)) ->appendChild( id(new AphrontFormSubmitControl()) ->setValue('Submit')); $panel = new AphrontPanelView(); $panel->setHeader('A Form'); $panel->setWidth(AphrontPanelView::WIDTH_FORM); $panel->appendChild($form); return $panel; } }