src/Controller/Traits/PanelsTrait.php
public function getPanels(array $config, array $data) : array
    {
        $result = ['success' => [], 'fail' => []];

        foreach (Panel::getPanelNames($config) as $name) {
            $panel = new Panel($name, $config);
            if (!empty($data) && $panel->evalExpression($data)) {
                $result['success'][] = $panel->getName();
            } else {
                $result['fail'][] = $panel->getName();
            }
        }

        return $result;
    }
public function getPanels(array $config, array $data) : array
    {
        $result = ['success' => [], 'fail' => []];

        foreach (Panel::getPanelNames($config) as $name) {
            $panel = new Panel($name, $config);
            if (!empty($data) && $panel->evalExpression($data)) {
                $result['success'][] = $panel->getName();
            } else {
                $result['fail'][] = $panel->getName();
            }
        }

        return $result;
    }
public function getPanels ( array $ config , array $ data ) : array { $ result = [ 'success' => [ ] , 'fail' => [ ] ] ; foreach ( Panel :: getPanelNames ( $ config ) as $ name ) { $ panel = new Panel ( $ name , $ config ) ; if ( ! empty ( $ data ) && $ panel -> evalExpression ( $ data ) ) { $ result [ 'success' ] [ ] = $ panel -> getName ( ) ; } else { $ result [ 'fail' ] [ ] = $ panel -> getName ( ) ; } } return $ result ; }
List of evaluated Panels.

Returns the all the evaluated panels which are split into two
types success and fail.
Success type contains the panels have been evaluated with success
and vice verca for fail type.

@see \CsvMigrations\Utility\Panel::evalExpression How the expression is evaluated.
@param mixed[] $config Table's config.
@param mixed[] $data to get the values for placeholders
@return mixed[] Evaluated panel list.
List of evaluated Panels .