public function getPropertyOptions(GetPropertyOptionsEvent $event)
    {
        if (('file_imageSize' !== $event->getPropertyName())
            || ('tl_metamodel_rendersetting' !== $event->getEnvironment()->getDataDefinition()->getName())
        ) {
            return;
        }

        if (!$sizes = $this->getThemeImageSizes()) {
            return;
        }

        $options                = $event->getOptions();
        $options['image_sizes'] = \array_replace($sizes, (array) $options['image_sizes']);

        $event->setOptions($options);
    }
public function getPropertyOptions(GetPropertyOptionsEvent $event)
    {
        if (('file_imageSize' !== $event->getPropertyName())
            || ('tl_metamodel_rendersetting' !== $event->getEnvironment()->getDataDefinition()->getName())
        ) {
            return;
        }

        if (!$sizes = $this->getThemeImageSizes()) {
            return;
        }

        $options                = $event->getOptions();
        $options['image_sizes'] = \array_replace($sizes, (array) $options['image_sizes']);

        $event->setOptions($options);
    }
public function getPropertyOptions ( GetPropertyOptionsEvent $ event ) { if ( ( 'file_imageSize' !== $ event -> getPropertyName ( ) ) || ( 'tl_metamodel_rendersetting' !== $ event -> getEnvironment ( ) -> getDataDefinition ( ) -> getName ( ) ) ) { return ; } if ( ! $ sizes = $ this -> getThemeImageSizes ( ) ) { return ; } $ options = $ event -> getOptions ( ) ; $ options [ 'image_sizes' ] = \ array_replace ( $ sizes , ( array ) $ options [ 'image_sizes' ] ) ; $ event -> setOptions ( $ options ) ; }
Get property options for file image size in the render settings.

@param GetPropertyOptionsEvent $event The event.

@return void
Get property options for file image size in the render settings .