src/View/ActionHandler/AbstractPropertyVisibilityHandler.php
private function useIntersectValue(
        $intersectPropertyName,
        array $legendPropertyNames,
        EnvironmentInterface $environment,
        PaletteInterface $defaultPalette = null
    ) {
        $propertiesDefinition = $environment->getDataDefinition()->getPropertiesDefinition();
        $useIntersectValue    = (bool) $defaultPalette;

        if ($defaultPalette && !$propertiesDefinition->getProperty($intersectPropertyName)->getWidgetType()
        ) {
            $useIntersectValue = true;
        }

        if ($defaultPalette
            && (false === $useIntersectValue)
            && \in_array($intersectPropertyName, $legendPropertyNames)
        ) {
            $useIntersectValue = true;
        }

        return $useIntersectValue;
    }
private function useIntersectValue(
        $intersectPropertyName,
        array $legendPropertyNames,
        EnvironmentInterface $environment,
        PaletteInterface $defaultPalette = null
    ) {
        $propertiesDefinition = $environment->getDataDefinition()->getPropertiesDefinition();
        $useIntersectValue    = (bool) $defaultPalette;

        if ($defaultPalette && !$propertiesDefinition->getProperty($intersectPropertyName)->getWidgetType()
        ) {
            $useIntersectValue = true;
        }

        if ($defaultPalette
            && (false === $useIntersectValue)
            && \in_array($intersectPropertyName, $legendPropertyNames)
        ) {
            $useIntersectValue = true;
        }

        return $useIntersectValue;
    }
private function useIntersectValue ( $ intersectPropertyName , array $ legendPropertyNames , EnvironmentInterface $ environment , PaletteInterface $ defaultPalette = null ) { $ propertiesDefinition = $ environment -> getDataDefinition ( ) -> getPropertiesDefinition ( ) ; $ useIntersectValue = ( bool ) $ defaultPalette ; if ( $ defaultPalette && ! $ propertiesDefinition -> getProperty ( $ intersectPropertyName ) -> getWidgetType ( ) ) { $ useIntersectValue = true ; } if ( $ defaultPalette && ( false === $ useIntersectValue ) && \ in_array ( $ intersectPropertyName , $ legendPropertyNames ) ) { $ useIntersectValue = true ; } return $ useIntersectValue ; }
Use intersect value.

@param string                $intersectPropertyName The intersect property name.
@param array                 $legendPropertyNames   The legend names.
@param EnvironmentInterface  $environment           The environment.

@param PaletteInterface|null $defaultPalette        The default palette.

@return bool
Use intersect value .