String

Use the string type for simple strings.

It should be used with doctrine string fields. Forms will render a simple text input.

Included in the PerformBaseBundle.

Options

label

The label to use for form labels and table headings. If no label is provided, a sensible label will be created automatically.

This option is optional.

Allowed types: string

Defaults:

  • List context: No default
  • View context: No default
  • Create context: No default
  • Edit context: No default

Example

<?php
$config->add('title', [
    'type' => 'string',
]);