public function getAssetVariables()
    {
        $result = [];

        foreach ($this->getFormFields() as $attribute => $field) {
            if (!$varName = array_get($field, 'assetVar')) {
                continue;
            }

            $result[$varName] = $this->{$attribute};
        }

        return $result;
    }
public function getAssetVariables()
    {
        $result = [];

        foreach ($this->getFormFields() as $attribute => $field) {
            if (!$varName = array_get($field, 'assetVar')) {
                continue;
            }

            $result[$varName] = $this->{$attribute};
        }

        return $result;
    }
public function getAssetVariables ( ) { $ result = [ ] ; foreach ( $ this -> getFormFields ( ) as $ attribute => $ field ) { if ( ! $ varName = array_get ( $ field , 'assetVar' ) ) { continue ; } $ result [ $ varName ] = $ this -> { $ attribute } ; } return $ result ; }
Returns variables that should be passed to the asset combiner.
@return array
Returns variables that should be passed to the asset combiner .