src/InterfaceBuilder/Forms/AbstractFormField.php
/**
     * Build the field name with prefix applied.
     *
     * @return string
     */
Build the field name with prefix applied.
@return string
Build the field name with prefix applied . @return string
public function buildPrefixedFieldName()
    {
        $field_name = $this->field->getAttribute('field_name');
        if ($this->prefix) {
            $adjustedPrefix = str_replace('.', '[', $this->prefix);
            if (str_contains($adjustedPrefix, '[')) {
                $adjustedPrefix = $adjustedPrefix.']';
            }
            return $adjustedPrefix.'['.$field_name.']';
        }
        return $field_name;
    }
public function buildPrefixedFieldName ( ) { $ field_name = $ this -> field -> getAttribute ( 'field_name' ) ; if ( $ this -> prefix ) { $ adjustedPrefix = str_replace ( '.' , '[' , $ this -> prefix ) ; if ( str_contains ( $ adjustedPrefix , '[' ) ) { $ adjustedPrefix = $ adjustedPrefix . ']' ; } return $ adjustedPrefix . '[' . $ field_name . ']' ; } return $ field_name ; }
Build the field name with prefix applied.
Build the field name with prefix applied .