src/View/ActionHandler/AbstractPropertyVisibilityHandler.php
private function matchInvisibleProperty(
        ConditionInterface $visibleCondition,
        array &$invisibleProperties,
        EnvironmentInterface $environment
    ) {
        $propertiesDefinition = $environment->getDataDefinition()->getPropertiesDefinition();

        foreach ($visibleCondition->getConditions() as $condition) {
            if ($condition instanceof ConditionChainInterface) {
                $this->matchInvisibleProperty($condition, $invisibleProperties, $environment);
            }

            if (!\method_exists($condition, 'getPropertyName')) {
                continue;
            }

            if (isset($invisibleProperties[$condition->getPropertyName()])
                || !$propertiesDefinition->hasProperty($condition->getPropertyName() . '.dummy')
            ) {
                continue;
            }

            $invisibleProperties[$condition->getPropertyName()]
                = $propertiesDefinition->getProperty($condition->getPropertyName() . '.dummy');
        }
    }
private function matchInvisibleProperty(
        ConditionInterface $visibleCondition,
        array &$invisibleProperties,
        EnvironmentInterface $environment
    ) {
        $propertiesDefinition = $environment->getDataDefinition()->getPropertiesDefinition();

        foreach ($visibleCondition->getConditions() as $condition) {
            if ($condition instanceof ConditionChainInterface) {
                $this->matchInvisibleProperty($condition, $invisibleProperties, $environment);
            }

            if (!\method_exists($condition, 'getPropertyName')) {
                continue;
            }

            if (isset($invisibleProperties[$condition->getPropertyName()])
                || !$propertiesDefinition->hasProperty($condition->getPropertyName() . '.dummy')
            ) {
                continue;
            }

            $invisibleProperties[$condition->getPropertyName()]
                = $propertiesDefinition->getProperty($condition->getPropertyName() . '.dummy');
        }
    }
private function matchInvisibleProperty ( ConditionInterface $ visibleCondition , array & $ invisibleProperties , EnvironmentInterface $ environment ) { $ propertiesDefinition = $ environment -> getDataDefinition ( ) -> getPropertiesDefinition ( ) ; foreach ( $ visibleCondition -> getConditions ( ) as $ condition ) { if ( $ condition instanceof ConditionChainInterface ) { $ this -> matchInvisibleProperty ( $ condition , $ invisibleProperties , $ environment ) ; } if ( ! \ method_exists ( $ condition , 'getPropertyName' ) ) { continue ; } if ( isset ( $ invisibleProperties [ $ condition -> getPropertyName ( ) ] ) || ! $ propertiesDefinition -> hasProperty ( $ condition -> getPropertyName ( ) . '.dummy' ) ) { continue ; } $ invisibleProperties [ $ condition -> getPropertyName ( ) ] = $ propertiesDefinition -> getProperty ( $ condition -> getPropertyName ( ) . '.dummy' ) ; } }
Match the invisible property.

@param ConditionInterface   $visibleCondition    The visible condition.
@param array                $invisibleProperties The invisible properties.
@param EnvironmentInterface $environment         The environment.

@return void
Match the invisible property .