if ($this->locked
) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'
);
} return \
count($this->children
);
} public function getFormConfig(): FormConfigInterface
{ /** @var $config self */
$config = parent::
getFormConfig();
$config->children =
[];
$config->unresolvedChildren =
[];
return $config;
} public function getForm(): FormInterface
{ if ($this->locked
) { throw new BadMethodCallException('FormBuilder methods cannot be accessed anymore once the builder is turned into a FormConfigInterface instance.'
);
}