public FieldConfig::__construct(array $values, $entity_type = 'field_config')
Constructs a FieldConfig object.
In most cases, Field entities are created via FieldConfig::create($values), where $values is the same parameter as in this constructor.
Parameters
array $values: An array of field properties, keyed by property name. The storage associated with the field can be specified either with:
field_storage: the FieldStorageConfigInterface object,
or by referring to an existing field storage