src/EventListener/DcGeneral/Table/FilterSetting/Base.php
protected function isAllowedProperty($event, $dataDefinitionName, $properties)
    {
        if ($event->getEnvironment()->getDataDefinition()->getName() !== $dataDefinitionName) {
            return false;
        }

        if (!\in_array($event->getPropertyName(), $properties)) {
            return false;
        }

        return true;
    }
protected function isAllowedProperty($event, $dataDefinitionName, $properties)
    {
        if ($event->getEnvironment()->getDataDefinition()->getName() !== $dataDefinitionName) {
            return false;
        }

        if (!\in_array($event->getPropertyName(), $properties)) {
            return false;
        }

        return true;
    }
protected function isAllowedProperty ( $ event , $ dataDefinitionName , $ properties ) { if ( $ event -> getEnvironment ( ) -> getDataDefinition ( ) -> getName ( ) !== $ dataDefinitionName ) { return false ; } if ( ! \ in_array ( $ event -> getPropertyName ( ) , $ properties ) ) { return false ; } return true ; }
Check if the current context is valid.

@param GetPropertyOptionsEvent|GetOptionsEvent $event              The event.
@param string                                  $dataDefinitionName The allowed name of the data definition.
@param array                                   $properties         A list of allowed properties.

@return bool
Check if the current context is valid .