Could someone explain me the following line which is in the Symfony Cookbook (FYI the main topic is dynamic generation for Submitted Forms)
I don't undersand the following: ? , neither the array() :
$sport = $event->getData()->getSport(); // getdata submited by the user in the Sport input
$positions = null === $sport ? array() : $sport->getAvailablePositions();
// is it similaire to that line? what the difference?
$positions = $event->getData()->getSport()->getAvailablePositions();