You are here

public function Field::setIndexedLocked in Search API 8

Sets whether this field should be locked.

Parameters

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

Return value

$this

Overrides FieldInterface::setIndexedLocked

File

src/Item/Field.php, line 615

Class

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

Namespace

Drupal\search_api\Item

Code

public function setIndexedLocked($indexed_locked = TRUE) {
  $this->indexedLocked = $indexed_locked;
  return $this;
}