function ManageContext::getAvailableRelationships
Same name in other branches
- 8.x-3.x src/Form/ManageContext.php \Drupal\ctools\Form\ManageContext::getAvailableRelationships()
Retrieve the available relationships.
Parameters
array $cached_values: The cached context values.
Return value
mixed The available relationships.
1 call to ManageContext::getAvailableRelationships()
- ManageContext::buildForm in src/
Form/ ManageContext.php - Form constructor.
File
-
src/
Form/ ManageContext.php, line 246
Class
- ManageContext
- Manage Context Form.
Namespace
Drupal\ctools\FormCode
protected function getAvailableRelationships(array $cached_values) {
/** @var \Drupal\ctools\TypedDataResolver $resolver */
$resolver = $this->typedDataResolver;
return $resolver->getTokensForContexts($this->getContexts($cached_values));
}