Version 1
[yaffs-website] / web / core / modules / dblog / src / Plugin / views / field / DblogOperations.php
1 <?php
2
3 namespace Drupal\dblog\Plugin\views\field;
4
5 use Drupal\views\Plugin\views\field\FieldPluginBase;
6 use Drupal\views\ResultRow;
7
8 /**
9  * Provides a field handler that renders operation link markup.
10  *
11  * @ingroup views_field_handlers
12  *
13  * @ViewsField("dblog_operations")
14  */
15 class DblogOperations extends FieldPluginBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function clickSortable() {
21     return FALSE;
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   public function render(ResultRow $values) {
28     $value = $this->getValue($values);
29     return $this->sanitizeValue($value, 'xss_admin');
30   }
31
32 }