public function FieldsHelperInterface::createField in Search API 8
Creates a new field object wrapping a field of the given index.
Parameters
\Drupal\search_api\IndexInterface $index: The index to which this field should be attached.
string $fieldIdentifier: The field identifier.
array $fieldInfo: (optional) An array with further configuration for the field.
Return value
\Drupal\search_api\Item\FieldInterface A new field object.
1 method overrides FieldsHelperInterface::createField()
- FieldsHelper::createField in src/
Utility/ FieldsHelper.php - Creates a new field object wrapping a field of the given index.
File
- src/
Utility/ FieldsHelperInterface.php, line 214
Class
- FieldsHelperInterface
- Provides an interface for implementations of the fields helper service.
Namespace
Drupal\search_api\UtilityCode
public function createField(IndexInterface $index, $fieldIdentifier, array $fieldInfo = []);