public function EntityPagerAnalyzer::analyze in Entity Pager 8
Same name and namespace in other branches
- 2.0.x src/EntityPagerAnalyzer.php \Drupal\entity_pager\EntityPagerAnalyzer::analyze()
Analyzes the given entity pager.
Parameters
\Drupal\entity_pager\EntityPagerInterface $entityPager: The entity pager to analyze.
Overrides EntityPagerAnalyzerInterface::analyze
File
- src/
EntityPagerAnalyzer.php, line 34
Class
- EntityPagerAnalyzer
- A class for analyzing an entity pager and providing feedback.
Namespace
Drupal\entity_pagerCode
public function analyze(EntityPagerInterface $entityPager) {
$event = new EntityPagerAnalyzeEvent($entityPager);
$this->eventDispatcher
->dispatch(EntityPagerEvents::ENTITY_PAGER_ANALYZE, $event);
$logs = $event
->getLogs();
foreach ($logs as $message) {
\Drupal::logger('entity_pager')
->notice($message);
}
}