src/View/ActionHandler/AbstractPropertyVisibilityHandler.php
private function getLegendPropertyNames(
        ModelInterface $intersectModel,
        EnvironmentInterface $environment,
        PaletteInterface &$defaultPalette = null
    ) {
        $inputProvider      = $environment->getInputProvider();
        $palettesDefinition = $environment->getDataDefinition()->getPalettesDefinition();

        $legendPropertyNames = [];
        if ($inputProvider->hasValue('FORM_INPUTS') && (1 === \count($palettesDefinition->getPalettes()))) {
            return $legendPropertyNames;
        }

        $defaultPalette = $palettesDefinition->findPalette($intersectModel);
        foreach ($defaultPalette->getProperties($intersectModel) as $paletteProperty) {
            $legendPropertyNames[] = $paletteProperty->getName();
        }

        return $legendPropertyNames;
    }
private function getLegendPropertyNames(
        ModelInterface $intersectModel,
        EnvironmentInterface $environment,
        PaletteInterface &$defaultPalette = null
    ) {
        $inputProvider      = $environment->getInputProvider();
        $palettesDefinition = $environment->getDataDefinition()->getPalettesDefinition();

        $legendPropertyNames = [];
        if ($inputProvider->hasValue('FORM_INPUTS') && (1 === \count($palettesDefinition->getPalettes()))) {
            return $legendPropertyNames;
        }

        $defaultPalette = $palettesDefinition->findPalette($intersectModel);
        foreach ($defaultPalette->getProperties($intersectModel) as $paletteProperty) {
            $legendPropertyNames[] = $paletteProperty->getName();
        }

        return $legendPropertyNames;
    }
private function getLegendPropertyNames ( ModelInterface $ intersectModel , EnvironmentInterface $ environment , PaletteInterface & $ defaultPalette = null ) { $ inputProvider = $ environment -> getInputProvider ( ) ; $ palettesDefinition = $ environment -> getDataDefinition ( ) -> getPalettesDefinition ( ) ; $ legendPropertyNames = [ ] ; if ( $ inputProvider -> hasValue ( 'FORM_INPUTS' ) && ( 1 === \ count ( $ palettesDefinition -> getPalettes ( ) ) ) ) { return $ legendPropertyNames ; } $ defaultPalette = $ palettesDefinition -> findPalette ( $ intersectModel ) ; foreach ( $ defaultPalette -> getProperties ( $ intersectModel ) as $ paletteProperty ) { $ legendPropertyNames [ ] = $ paletteProperty -> getName ( ) ; } return $ legendPropertyNames ; }
Get legend property names.

@param ModelInterface        $intersectModel The intersect model.
@param EnvironmentInterface  $environment    The environment.
@param PaletteInterface|null $defaultPalette The default palette.

@return array
Get legend property names .