I\'d like to create different fields configuration for create and edit actions in Sonata Admin Bundle.
Is there any way to determine it except checking $this->g
$this->g
public function getAction(): ?string { if (! $this->getRequest()) { return null; } $pathArray = \explode('/', $this->request->getPathInfo()); return \end($pathArray); }