comparison core/modules/views/src/Analyzer.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
29 */ 29 */
30 public function __construct(ModuleHandlerInterface $module_handler) { 30 public function __construct(ModuleHandlerInterface $module_handler) {
31 $this->moduleHandler = $module_handler; 31 $this->moduleHandler = $module_handler;
32 } 32 }
33 33
34
35 /** 34 /**
36 * Analyzes a review and return the results. 35 * Analyzes a review and return the results.
37 * 36 *
38 * @param \Drupal\views\ViewExecutable $view 37 * @param \Drupal\views\ViewExecutable $view
39 * The view to analyze. 38 * The view to analyze.
50 } 49 }
51 50
52 /** 51 /**
53 * Formats the analyze result into a message string. 52 * Formats the analyze result into a message string.
54 * 53 *
55 * This is based upon the format of drupal_set_message which uses separate 54 * This is based upon the format of
55 * \Drupal\Core\Messenger\MessengerInterface::addMessage() which uses separate
56 * boxes for "ok", "warning" and "error". 56 * boxes for "ok", "warning" and "error".
57 */ 57 */
58 public function formatMessages(array $messages) { 58 public function formatMessages(array $messages) {
59 if (empty($messages)) { 59 if (empty($messages)) {
60 $messages = [static::formatMessage(t('View analysis can find nothing to report.'), 'ok')]; 60 $messages = [static::formatMessage(t('View analysis can find nothing to report.'), 'ok')];