You are here

public function Field::setTypeLocked in Search API 8

Sets whether the type of this field should be locked.

Parameters

bool $type_locked: (optional) TRUE if the type of the field should be locked, FALSE otherwise.

Return value

$this

Overrides FieldInterface::setTypeLocked

File

src/Item/Field.php, line 630

Class

Field
Represents a field on a search item that can be indexed.

Namespace

Drupal\search_api\Item

Code

public function setTypeLocked($type_locked = TRUE) {
  $this->typeLocked = $type_locked;
  return $this;
}