Skip to content

ArrayField

ArrayField is the representative implementation of AbstractField for a structured array.

A new ArrayField can be created using the following data:

1
2
3
4
5
6
7
8
use Silversolutions\Bundle\EshopBundle\Content\Fields\ImageField;

// Usage:
$myArray = array (
    'weight' => '10 kg',
    'color' => 'red'
);
$arrayField = new ArrayField(array('array' =>  $myArray));