Get an instance of a plugin.
string $type: The plugin type, e.g., 'access' or 'display'.
string $plugin_id: The name of the plugin, e.g., 'standard'.
Drupal\views\Plugin\view\PluginBase The created plugin instance.
function views_get_plugin($type, $plugin_id) {
return drupal_container()
->get("plugin.manager.views.{$type}")
->createInstance($plugin_id);
}