Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 5 |
DblogOperations | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 5 |
clickSortable | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
render | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 3 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\dblog\Plugin\views\field\DblogOperations. | |
*/ | |
namespace Drupal\dblog\Plugin\views\field; | |
use Drupal\views\Plugin\views\field\FieldPluginBase; | |
use Drupal\views\ResultRow; | |
/** | |
* Provides a field handler that renders operation link markup. | |
* | |
* @ingroup views_field_handlers | |
* | |
* @ViewsField("dblog_operations") | |
*/ | |
class DblogOperations extends FieldPluginBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function clickSortable() { | |
return FALSE; | |
} | |
/** | |
* {@inheritdoc} | |
*/ | |
public function render(ResultRow $values) { | |
$value = $this->getValue($values); | |
return $this->sanitizeValue($value, 'xss_admin'); | |
} | |
} |