src/Utility/Field.php
protected static function setFieldPluginAndModel(string $tableName, array $fields) : array
    {
        list($plugin, $model) = pluginSplit($tableName);

        $callback = function (&$value, $key) use ($plugin, $model) {
            $value = ['plugin' => $plugin, 'model' => $model, 'name' => $value];

            return $value;
        };

        array_walk_recursive($fields, $callback);

        return $fields;
    }
protected static function setFieldPluginAndModel(string $tableName, array $fields) : array
    {
        list($plugin, $model) = pluginSplit($tableName);

        $callback = function (&$value, $key) use ($plugin, $model) {
            $value = ['plugin' => $plugin, 'model' => $model, 'name' => $value];

            return $value;
        };

        array_walk_recursive($fields, $callback);

        return $fields;
    }
protected static function setFieldPluginAndModel ( string $ tableName , array $ fields ) : array { list ( $ plugin , $ model ) = pluginSplit ( $ tableName ) ; $ callback = function ( & $ value , $ key ) use ( $ plugin , $ model ) { $ value = [ 'plugin' => $ plugin , 'model' => $ model , 'name' => $ value ] ; return $ value ; } ; array_walk_recursive ( $ fields , $ callback ) ; return $ fields ; }
Add plugin and model name for each of the csv fields.

@param string $tableName Table name
@param string[] $fields View csv fields
@return mixed[]
Add plugin and model name for each of the csv fields .