public function setEntity(Platform $platform)
 {
     $this->platform = $platform;
     /** @var Form $form */
     $form = $this['form'];
     $defaults = $platform->toArray();
     $form->setDefaults($defaults);
     /** @var SubmitButton $submit */
     $submit = $form['save'];
     $submit->caption = 'Uložit úpravy';
 }