public function FieldInterface::setType in Search API 8
Sets the Search API data type of this field.
Parameters
string $type: The data type of the field.
Return value
$this
Throws
\Drupal\search_api\SearchApiException Thrown if the type of this field is locked.
1 method overrides FieldInterface::setType()
- Field::setType in src/
Item/ Field.php - Sets the Search API data type of this field.
File
- src/
Item/ FieldInterface.php, line 275
Class
- FieldInterface
- Represents a field on a search item that can be indexed.
Namespace
Drupal\search_api\ItemCode
public function setType($type);