add('footprint_3d', MasterPictureAttachmentType::class, [ 'required' => false, 'disabled' => ! $this->security->isGranted(null === $entity->getID() ? 'create' : 'edit', $entity), 'label' => 'footprint.edit.3d_model', 'filter' => '3d_model', 'entity' => $entity, ]); } }