You are here

public function WidgetDefaultsInterface::getParentDefaults in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x src/WidgetDefaultsInterface.php \Drupal\shs\WidgetDefaultsInterface::getParentDefaults()

Load parents for default values.

Parameters

array|string $default_values: List of default values of the widget.

string $any_value: The value to assign to "any value".

string $entity_type: The entity type the select is displaying.

Return value

array List of parents for each default value.

1 method overrides WidgetDefaultsInterface::getParentDefaults()
WidgetDefaults::getParentDefaults in src/WidgetDefaults.php
Load parents for default values.

File

src/WidgetDefaultsInterface.php, line 34

Class

WidgetDefaultsInterface
Interface for default values on SHS widgets.

Namespace

Drupal\shs

Code

public function getParentDefaults($default_values, $any_value, $entity_type);