src/Forms/Form.php
public function setPrefix(string $prefix): FieldTypeInterface
    {
        $this->prefix = $prefix;

        // Update all attached fields with the given prefix.
        foreach ($this->repository->all() as $field) {
            /** @var FieldTypeInterface $field */
            $field->setPrefix($prefix);
        }

        return $this;
    }
public function setPrefix(string $prefix): FieldTypeInterface
    {
        $this->prefix = $prefix;

        // Update all attached fields with the given prefix.
        foreach ($this->repository->all() as $field) {
            /** @var FieldTypeInterface $field */
            $field->setPrefix($prefix);
        }

        return $this;
    }
public function setPrefix ( string $ prefix ) : FieldTypeInterface { $ this -> prefix = $ prefix ; // Update all attached fields with the given prefix. foreach ( $ this -> repository -> all ( ) as $ field ) { /** @var FieldTypeInterface $field */ $ field -> setPrefix ( $ prefix ) ; } return $ this ; }
Set the form prefix. If fields are attached to the form,
all fields are updated with the given prefix.

@param string $prefix

@return FieldTypeInterface
Set the form prefix . If fields are attached to the form all fields are updated with the given prefix .