private function isBackendOptionRequestFor($event, $fields)
    {
        if (!$this->scopeMatcher->currentScopeIsBackend()) {
            return false;
        }

        return ('tl_metamodel_attribute' === $event->getEnvironment()->getDataDefinition()->getName())
            && \in_array($event->getPropertyName(), $fields);
    }
private function isBackendOptionRequestFor($event, $fields)
    {
        if (!$this->scopeMatcher->currentScopeIsBackend()) {
            return false;
        }

        return ('tl_metamodel_attribute' === $event->getEnvironment()->getDataDefinition()->getName())
            && \in_array($event->getPropertyName(), $fields);
    }
private function isBackendOptionRequestFor ( $ event , $ fields ) { if ( ! $ this -> scopeMatcher -> currentScopeIsBackend ( ) ) { return false ; } return ( 'tl_metamodel_attribute' === $ event -> getEnvironment ( ) -> getDataDefinition ( ) -> getName ( ) ) && \ in_array ( $ event -> getPropertyName ( ) , $ fields ) ; }
Test if the event is an option request for any of the passed fields.

@param GetPropertyOptionsEvent $event  The event.
@param string[]                $fields The field names.

@return bool
Test if the event is an option request for any of the passed fields .