private function getOptionsForWidget(
        EnvironmentInterface $environment,
        PropertyInterface $propInfo,
        ModelInterface $model
    ) {
        $dispatcher = $environment->getEventDispatcher();
        $options    = $propInfo->getOptions();
        $event      = new GetPropertyOptionsEvent($environment, $model);
        $event->setPropertyName($propInfo->getName());
        $event->setOptions($options);
        $dispatcher->dispatch(GetPropertyOptionsEvent::NAME, $event);

        if ($event->getOptions() !== $options) {
            return $event->getOptions();
        }

        return $options;
    }
private function getOptionsForWidget(
        EnvironmentInterface $environment,
        PropertyInterface $propInfo,
        ModelInterface $model
    ) {
        $dispatcher = $environment->getEventDispatcher();
        $options    = $propInfo->getOptions();
        $event      = new GetPropertyOptionsEvent($environment, $model);
        $event->setPropertyName($propInfo->getName());
        $event->setOptions($options);
        $dispatcher->dispatch(GetPropertyOptionsEvent::NAME, $event);

        if ($event->getOptions() !== $options) {
            return $event->getOptions();
        }

        return $options;
    }
private function getOptionsForWidget ( EnvironmentInterface $ environment , PropertyInterface $ propInfo , ModelInterface $ model ) { $ dispatcher = $ environment -> getEventDispatcher ( ) ; $ options = $ propInfo -> getOptions ( ) ; $ event = new GetPropertyOptionsEvent ( $ environment , $ model ) ; $ event -> setPropertyName ( $ propInfo -> getName ( ) ) ; $ event -> setOptions ( $ options ) ; $ dispatcher -> dispatch ( GetPropertyOptionsEvent :: NAME , $ event ) ; if ( $ event -> getOptions ( ) !== $ options ) { return $ event -> getOptions ( ) ; } return $ options ; }
Get special labels.

@param EnvironmentInterface $environment The environment.

@param PropertyInterface    $propInfo    The property for which the options shall be retrieved.

@param ModelInterface       $model       The model.

@return string[]
Get special labels .