FluidTYPO3\Flux\Hooks\WizardItemsHookSubscriber::appendToWhiteAndBlacklistFromProviders PHP Метод

appendToWhiteAndBlacklistFromProviders() защищенный Метод

protected appendToWhiteAndBlacklistFromProviders ( array $providers, array $record, array &$whitelist, array &$blacklist, integer $columnPosition, string $fluxAreaName = NULL )
$providers array
$record array
$whitelist array
$blacklist array
$columnPosition integer
$fluxAreaName string
    protected function appendToWhiteAndBlacklistFromProviders(array $providers, array $record, array &$whitelist, array &$blacklist, $columnPosition, $fluxAreaName = NULL)
    {
        foreach ($providers as $provider) {
            $grid = $provider->getGrid($record);
            if (NULL === $grid) {
                continue;
            }
            foreach ($grid->getRows() as $row) {
                foreach ($row->getColumns() as $column) {
                    if (FALSE === empty($fluxAreaName)) {
                        if ($column->getName() === $fluxAreaName) {
                            list($whitelist, $blacklist) = $this->appendToWhiteAndBlacklistFromComponent($column, $whitelist, $blacklist);
                        }
                    } elseif ($column->getColumnPosition() === $columnPosition) {
                        list($whitelist, $blacklist) = $this->appendToWhiteAndBlacklistFromComponent($column, $whitelist, $blacklist);
                    }
                }
            }
        }
    }