Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite DCA image size options to service #4

Open
aschempp opened this issue Apr 30, 2024 · 1 comment
Open

Rewrite DCA image size options to service #4

aschempp opened this issue Apr 30, 2024 · 1 comment

Comments

@aschempp
Copy link
Member

Old:

'imageSize' => array(
    'inputType' => 'imageSize',
    'options' => \System::getImageSizes(),
),

Old:

'imageSize' => array(
    'inputType' => 'imageSize',
    'options' => \Contao\System::getContainer()->get('contao.image.sizes')->getAllOptions(),
),
@zoglo
Copy link
Contributor

zoglo commented May 2, 2024

Stumbled across this issue and tried to implement this when I found out that the image size options were dropped due to the 'imageSize' widget adding the options now.

Is this conversion still necessary or could we just drop the 'options' completely nowadays?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants