You are here

protected function ChildWeight::defineOptions in Entity Reference Hierarchy 8

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides SortPluginBase::defineOptions

File

entity_hierarchy_views/src/Plugin/views/sort/ChildWeight.php, line 20
Contains \Drupal\entity_hierarchy_views\Plugin\views\sort\ChildWeight.

Class

ChildWeight
Sort handler for hierarchy children

Namespace

Drupal\entity_hierarchy_views\Plugin\views\sort

Code

protected function defineOptions() {
  $options = parent::defineOptions();

  //    kint($options);
  return $options;
}