solrlog-1.0.1/src/Plugin/views/field/SolrlogOperations.php
src/Plugin/views/field/SolrlogOperations.php
<?php
namespace Drupal\solrlog\Plugin\views\field;
use Drupal\views\Attribute\ViewsField;
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("solrlog_operations")]
class SolrlogOperations extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function clickSortable() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function render(ResultRow $values) {
$value = $this->getValue($values);
return $this->sanitizeValue($value, 'xss_admin');
}
}
