You are here

public static function PathBreadcrumbsUIAutocomplete::applyCurrentVariables in Path Breadcrumbs 7.3

Wrap all available entities in entity metadata wrapper.

Parameters

$context_keywords:

Return value

array

1 call to PathBreadcrumbsUIAutocomplete::applyCurrentVariables()
PathBreadcrumbsUIAutocomplete::processAutocomplete in path_breadcrumbs_ui/includes/path_breadcrumbs_ui.autocomplete.inc

File

path_breadcrumbs_ui/includes/path_breadcrumbs_ui.autocomplete.inc, line 200
Path breadcrumbs UI autocomplete.

Class

PathBreadcrumbsUIAutocomplete
@file Path breadcrumbs UI autocomplete.

Code

public static function applyCurrentVariables($context_keywords) {
  $sources = array();
  foreach ($context_keywords as $keyword => $context_type) {
    $info = PathBreadcrumbsUIAutocomplete::getEntityInfo($context_type);
    $sources[$keyword] = entity_metadata_wrapper($context_type, NULL, $info);
  }
  return $sources;
}