public function build()
    {
        $config = parent::build();
        if (array_key_exists('collapsed', $config)) {
            $fieldKey = $this->fieldsBuilder->getField($config['collapsed'])->getKey();
            $fieldKey = preg_replace('/^field_/', '', $fieldKey);
            $config['collapsed'] = $this->getName() . '_' . $fieldKey;
        }
        return $config;
    }
public function build()
    {
        $config = parent::build();
        if (array_key_exists('collapsed', $config)) {
            $fieldKey = $this->fieldsBuilder->getField($config['collapsed'])->getKey();
            $fieldKey = preg_replace('/^field_/', '', $fieldKey);
            $config['collapsed'] = $this->getName() . '_' . $fieldKey;
        }
        return $config;
    }
public function build ( ) { $ config = parent :: build ( ) ; if ( array_key_exists ( 'collapsed' , $ config ) ) { $ fieldKey = $ this -> fieldsBuilder -> getField ( $ config [ 'collapsed' ] ) -> getKey ( ) ; $ fieldKey = preg_replace ( '/^field_/' , '' , $ fieldKey ) ; $ config [ 'collapsed' ] = $ this -> getName ( ) . '_' . $ fieldKey ; } return $ config ; }
Return a repeater field configuration array
@return array
Return a repeater field configuration array