function system_plugin_ui_access

Checks access for a given plugin using the plugin's access() method.

@todo This needs more explanation, some @see, and parameter documentation. @todo What the heck kind of parameter name is "facet"?

1 string reference to 'system_plugin_ui_access'
system_menu in drupal/core/modules/system/system.module
Implements hook_menu().

File

drupal/core/modules/system/system.module, line 1109
Configuration system that lets administrators modify the workings of the site.

Code

function system_plugin_ui_access($plugin, $facet = NULL) {
  $plugin_ui = drupal_container()
    ->get('plugin.manager.system.plugin_ui')
    ->createInstance($plugin);
  return $plugin_ui
    ->access($facet);
}