public function ViewsPerformanceAnalyzerSubscriber::onEntityPagerAnalyze in Entity Pager 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/ViewsPerformanceAnalyzerSubscriber.php \Drupal\entity_pager\EventSubscriber\ViewsPerformanceAnalyzerSubscriber::onEntityPagerAnalyze()
Analyzes the entity pager view for performance issues and provide feedback.
Parameters
\Drupal\entity_pager\Event\EntityPagerAnalyzeEvent $event: The Entity Pager Analyze event.
File
- src/
EventSubscriber/ ViewsPerformanceAnalyzerSubscriber.php, line 31
Class
- ViewsPerformanceAnalyzerSubscriber
- An event subscriber to provide performance feedback on the Entity Pager view.
Namespace
Drupal\entity_pager\EventSubscriberCode
public function onEntityPagerAnalyze(EntityPagerAnalyzeEvent $event) {
$options = $event
->getEntityPager()
->getOptions();
if (!$options['log_performance']) {
return;
}
// @todo Log performance issues about the view
}