You are here

public static function StateItem::defaultFieldSettings in State Machine 8

Defines the field-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultFieldSettings

File

src/Plugin/Field/FieldType/StateItem.php, line 90

Class

StateItem
Plugin implementation of the 'state' field type.

Namespace

Drupal\state_machine\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'workflow' => '',
    'workflow_callback' => '',
  ] + parent::defaultFieldSettings();
}