ActivityPreview.php in CRM Core 8.2
Same filename and directory in other branches
File
modules/crm_core_activity/src/Plugin/views/field/ActivityPreview.phpView source
<?php
namespace Drupal\crm_core_activity\Plugin\views\field;
use Drupal\views\Plugin\views\display\DisplayPluginBase;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
use Drupal\views\ViewExecutable;
/**
* Field handler to present the preview for the activity.
*
* @ingroup views_field_handlers
*
* @ViewsField("activity_preview")
*/
class ActivityPreview extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function render(ResultRow $values) {
return $this
->getEntity($values)->type->entity
->getPlugin()
->display($this
->getEntity($values));
}
}
Classes
Name![]() |
Description |
---|---|
ActivityPreview | Field handler to present the preview for the activity. |