You are here

protected function ConfigSyncSnapshotter::drupalGetFilename in Configuration Synchronizer 8.2

Wrapper for drupal_get_filename().

Parameters

$type: The type of the item; one of 'core', 'profile', 'module', 'theme', or 'theme_engine'.

$name: The name of the item for which the path is requested. Ignored for $type 'core'.

Return value

string The path to the requested item or an empty string if the item is not found.

1 call to ConfigSyncSnapshotter::drupalGetFilename()
ConfigSyncSnapshotter::refreshExtensionSnapshot in src/ConfigSyncSnapshotter.php
Takes a snapshot of configuration from specified modules or themes.

File

src/ConfigSyncSnapshotter.php, line 220

Class

ConfigSyncSnapshotter
The ConfigSyncSnapshotter provides helper functions for taking snapshots of extension-provided configuration.

Namespace

Drupal\config_sync

Code

protected function drupalGetFilename($type, $name) {
  return drupal_get_filename($type, $name);
}