public function updateCron(
        EdgarEzCron $data,
        ?string $name = null
    ): ?FormInterface {
        $name = $name ?: sprintf('update-cron-%s', $data->getAlias());

        return $this->formFactory->createNamed(
            $name,
            CronType::class,
            $data,
            [
                'method' => Request::METHOD_POST,
                'csrf_protection' => true,
            ]
        );
    }
public function updateCron(
        EdgarEzCron $data,
        ?string $name = null
    ): ?FormInterface {
        $name = $name ?: sprintf('update-cron-%s', $data->getAlias());

        return $this->formFactory->createNamed(
            $name,
            CronType::class,
            $data,
            [
                'method' => Request::METHOD_POST,
                'csrf_protection' => true,
            ]
        );
    }
public function updateCron ( EdgarEzCron $ data , ? string $ name = null ) : ? FormInterface { $ name = $ name ? : sprintf ( 'update-cron-%s' , $ data -> getAlias ( ) ) ; return $ this -> formFactory -> createNamed ( $ name , CronType :: class , $ data , [ 'method' => Request :: METHOD_POST , 'csrf_protection' => true , ] ) ; }
Cron form interface.

@param EdgarEzCron $data
@param null|string $name

@return null|FormInterface
Cron form interface .