private function isEventForMe(GetOptionsEvent $event)
    {
        $input = $event->getEnvironment()->getInputProvider();

        if ($input->hasValue('type')) {
            $type = $input->getValue('type');
        }

        if (empty($type)) {
            $type = $event->getModel()->getProperty('type');
        }

        return
            ($event->getEnvironment()->getDataDefinition()->getName() !== 'tl_metamodel_attribute')
            || ($type !== 'translatedalias')
            || ($event->getPropertyName() !== 'talias_fields')
            || ($event->getSubPropertyName() !== 'field_attribute');
    }
private function isEventForMe(GetOptionsEvent $event)
    {
        $input = $event->getEnvironment()->getInputProvider();

        if ($input->hasValue('type')) {
            $type = $input->getValue('type');
        }

        if (empty($type)) {
            $type = $event->getModel()->getProperty('type');
        }

        return
            ($event->getEnvironment()->getDataDefinition()->getName() !== 'tl_metamodel_attribute')
            || ($type !== 'translatedalias')
            || ($event->getPropertyName() !== 'talias_fields')
            || ($event->getSubPropertyName() !== 'field_attribute');
    }
private function isEventForMe ( GetOptionsEvent $ event ) { $ input = $ event -> getEnvironment ( ) -> getInputProvider ( ) ; if ( $ input -> hasValue ( 'type' ) ) { $ type = $ input -> getValue ( 'type' ) ; } if ( empty ( $ type ) ) { $ type = $ event -> getModel ( ) -> getProperty ( 'type' ) ; } return ( $ event -> getEnvironment ( ) -> getDataDefinition ( ) -> getName ( ) !== 'tl_metamodel_attribute' ) || ( $ type !== 'translatedalias' ) || ( $ event -> getPropertyName ( ) !== 'talias_fields' ) || ( $ event -> getSubPropertyName ( ) !== 'field_attribute' ) ; }
Check if the event is intended for us.

@param GetOptionsEvent $event The event to test.

@return bool
Check if the event is intended for us .