src/Utility/Field.php
public static function getVirtual(RepositoryInterface $table) : array
    {
        $moduleName = App::shortName(get_class($table), 'Model/Table', 'Table');

        $config = (new ModuleConfig(ConfigType::MODULE(), $moduleName))->parse();

        return property_exists($config, 'virtualFields') ? (array)$config->virtualFields : [];
    }
public static function getVirtual(RepositoryInterface $table) : array
    {
        $moduleName = App::shortName(get_class($table), 'Model/Table', 'Table');

        $config = (new ModuleConfig(ConfigType::MODULE(), $moduleName))->parse();

        return property_exists($config, 'virtualFields') ? (array)$config->virtualFields : [];
    }
public static function getVirtual ( RepositoryInterface $ table ) : array { $ moduleName = App :: shortName ( get_class ( $ table ) , 'Model/Table' , 'Table' ) ; $ config = ( new ModuleConfig ( ConfigType :: MODULE ( ) , $ moduleName ) ) -> parse ( ) ; return property_exists ( $ config , 'virtualFields' ) ? ( array ) $ config -> virtualFields : [ ] ; }
Module virtual fields getter.

@param \Cake\Datasource\RepositoryInterface $table Table instance
@return string[]
Module virtual fields getter .