Symfony\Component\Form\Form::getClientData PHP Method

getClientData() public method

Returns the data transformed by the value transformer.
public getClientData ( ) : string
return string
    public function getClientData()
    {
        return $this->clientData;
    }

Usage Example

Example #1
0
 public function testDataIsInitializedEmpty()
 {
     $norm = new FixedDataTransformer(array('' => 'foo'));
     $client = new FixedDataTransformer(array('foo' => 'bar'));
     $form = new Form('name', $this->dispatcher, array(), array($client), array($norm));
     $this->assertNull($form->getData());
     $this->assertSame('foo', $form->getNormData());
     $this->assertSame('bar', $form->getClientData());
 }