You are here

public static function UnsavedIndexConfiguration::create in Search API 8

Constructs a new entity object, without permanently saving it.

Parameters

array $values: (optional) An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.

Return value

static The entity object.

Overrides EntityInterface::create

File

src/UnsavedIndexConfiguration.php, line 866

Class

UnsavedIndexConfiguration
Represents a configuration of an index that was not yet permanently saved.

Namespace

Drupal\search_api

Code

public static function create(array $values = []) {
  return Index::create($values);
}