Actions.php in Ubercart 8.4
Namespace
Drupal\uc_order\Plugin\views\fieldFile
uc_order/src/Plugin/views/field/Actions.phpView source
<?php
namespace Drupal\uc_order\Plugin\views\field;
use Drupal\uc_order\Entity\Order;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\ResultRow;
/**
* Field handler to provide action icons.
*
* @ingroup views_field_handlers
*
* @ViewsField("uc_order_actions")
*/
class Actions extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function render(ResultRow $values) {
$order = Order::load($this
->getValue($values));
return uc_order_actions($order, TRUE);
}
}