You are here

public function Index::isServerEnabled in Search API 8

Checks if this index has an enabled server.

Return value

bool TRUE if this index is attached to a valid, enabled server.

Overrides IndexInterface::isServerEnabled

1 call to Index::isServerEnabled()
Index::preSave in src/Entity/Index.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Index.php, line 486

Class

Index
Defines the search index configuration entity.

Namespace

Drupal\search_api\Entity

Code

public function isServerEnabled() {
  return $this
    ->hasValidServer() && $this
    ->getServerInstance()
    ->status();
}