1 entityreference.module _entityreference_selection_plugins()

Get all selection plugins implemented by any module.

File

core/modules/entityreference/entityreference.module, line 1493
Entityreference primary module file.

Code

function _entityreference_selection_plugins() {
  $plugins = &backdrop_static(__FUNCTION__);
  if (!empty($plugins)) {
    return $plugins;
  }

  $plugins = array();
  foreach (module_implements('entityreference_selection_plugins') as $module) {
    $plugins = $plugins + module_invoke($module, 'entityreference_selection_plugins');
  }

  return $plugins;
}