DblogOperations.php

Same filename and directory in other branches
  1. 9 core/modules/dblog/src/Plugin/views/field/DblogOperations.php
  2. 8.9.x core/modules/dblog/src/Plugin/views/field/DblogOperations.php
  3. 11.x core/modules/dblog/src/Plugin/views/field/DblogOperations.php

Namespace

Drupal\dblog\Plugin\views\field

File

core/modules/dblog/src/Plugin/views/field/DblogOperations.php

View source
<?php

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');
    }

}

Classes

Title Deprecated Summary
DblogOperations Provides a field handler that renders operation link markup.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.