<?php
defined('TYPO3') or die('Access denied.');

// Restrict cropping aspect ratio for images in news entries to 16:9
$GLOBALS['TCA']['tx_news_domain_model_news']['columns']['fal_media']['config']['overrideChildTca']['columns']['crop']['config'] = [
    'cropVariants' => [
        'default' => [
            'title' => 'Default',
            'allowedAspectRatios' => [
                '16-9' => [
                    'title' => '16:9',
                    'value' => 16 / 9
                ],
            ],
            'selectedRatio' => '16-9',
        ],
    ],
];
