public function ServerTaskManagerInterface::execute in Search API 8
Checks for pending tasks on one or all enabled search servers.
Parameters
\Drupal\search_api\ServerInterface|null $server: (optional) The server whose tasks should be executed. If not given, the tasks for all enabled servers are executed.
Return value
bool TRUE if all tasks (for the specific server, if $server was given) were executed successfully, or if there were no tasks. FALSE if there are still pending tasks.
1 method overrides ServerTaskManagerInterface::execute()
- ServerTaskManager::execute in src/
Task/ ServerTaskManager.php - Checks for pending tasks on one or all enabled search servers.
File
- src/
Task/ ServerTaskManagerInterface.php, line 36
Class
- ServerTaskManagerInterface
- Defines the interface for the server task manager.
Namespace
Drupal\search_api\TaskCode
public function execute(ServerInterface $server = NULL);