AddField

The Contact Form DB AddField class.

Defined (1)

The class is defined in the following location(s).

/phpunit/TransformsTest.php  
  1. class AddField extends BaseTransform { 
  2.  
  3. public function getTransformedData() { 
  4. $idx = 0; 
  5. foreach ($this->data as &$entry) { 
  6. $entry['index'] = $idx++; 
  7. return $this->data;