You are here

public function Field::setHidden in Search API 8

Sets whether this field should be hidden from the user.

Parameters

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

Return value

$this

Overrides FieldInterface::setHidden

File

src/Item/Field.php, line 464

Class

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

Namespace

Drupal\search_api\Item

Code

public function setHidden($hidden = TRUE) {
  $this->hidden = $hidden;
  return $this;
}