You are here

public function InMemoryLogger::getLastMessage in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::getLastMessage()
  2. 8 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::getLastMessage()
  3. 8.2 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::getLastMessage()

Gets the last log message.

File

tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php, line 28

Class

InMemoryLogger
A simple in memory logger.

Namespace

Drupal\search_api_solr_test\Logger

Code

public function getLastMessage() {
  return end($this->messages);
}