Former\Form\Group::placeAround PHP Method

placeAround() protected method

Place elements around the field
protected placeAround ( array $items, string $place )
$items array An array of items to place
$place string Where they should end up (prepend|append)
    protected function placeAround($items, $place)
    {
        // Iterate over the items and place them where they should
        foreach ((array) $items as $item) {
            $item = $this->app['former.framework']->placeAround($item);
            $this->{$place}[] = $item;
        }
    }