ChildWeight.php in Entity Reference Hierarchy 8
File
entity_hierarchy_views/src/Plugin/views/sort/ChildWeight.phpView source
<?php
/**
* @file
* Contains \Drupal\entity_hierarchy_views\Plugin\views\sort\ChildWeight.
*/
namespace Drupal\entity_hierarchy_views\Plugin\views\sort;
use Drupal\views\Plugin\views\sort\SortPluginBase;
/**
* Sort handler for hierarchy children
*
* @ingroup views_sort_handlers
*
* @ViewsSort("child_weight")
*/
class ChildWeight extends SortPluginBase {
protected function defineOptions() {
$options = parent::defineOptions();
// kint($options);
return $options;
}
public function query() {
$this
->ensureMyTable();
}
}
Classes
Name | Description |
---|---|
ChildWeight | Sort handler for hierarchy children |