EclipseGc

Untitled

Feb 19th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. /**
  2.    * Implements MapperInterface::getPluginType().
  3.    */
  4.   function getPluginType($scope, $type, $config_class = 'Drupal\Config\DrupalConfig') {
  5.     if (empty($this->configuration[$scope][$type])) {
  6.       $this->configuration[$scope][$type] = config("plugin.type.$scope.$type", $config_class);
  7.     }
  8.     return $this->configuration[$scope][$type];
  9.   }
  10.  
  11. // Config does this last I looked:
  12.  
  13. function config($name, $class = 'Drupal\Config\DrupalConfig') {
  14.   // @todo Replace this with an appropriate factory.
  15.   return new $class(new DrupalVerifiedStorageSQL($name));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment