src/Contao/Event/Subscriber.php
protected static function getOptions($environment, $model, $property)
    {
        $event = new GetPropertyOptionsEvent($environment, $model);
        $event->setPropertyName($property->getName());
        $event->setOptions($property->getOptions());

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        return $event->getOptions();
    }
protected static function getOptions($environment, $model, $property)
    {
        $event = new GetPropertyOptionsEvent($environment, $model);
        $event->setPropertyName($property->getName());
        $event->setOptions($property->getOptions());

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        return $event->getOptions();
    }
protected static function getOptions ( $ environment , $ model , $ property ) { $ event = new GetPropertyOptionsEvent ( $ environment , $ model ) ; $ event -> setPropertyName ( $ property -> getName ( ) ) ; $ event -> setOptions ( $ property -> getOptions ( ) ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( $ event :: NAME , $ event ) ; return $ event -> getOptions ( ) ; }
Fetch the options for a certain property.

@param EnvironmentInterface $environment The environment.
@param ModelInterface       $model       The model.
@param PropertyInterface    $property    The property.

@return array
Fetch the options for a certain property .