Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -14,9 +14,8 @@ use Symfony\Component\HttpFoundation\Request;
* To also discover test modules, add
* @code
* $settings['extension_discovery_scan_tests'] = TRUE;
* @encode
* @endcode
* to your settings.php.
*
*/
class ExtensionDiscovery {
@ -79,7 +78,7 @@ class ExtensionDiscovery {
protected $profileDirectories;
/**
* The app root.
* The app root for the current operation.
*
* @var string
*/
@ -139,7 +138,7 @@ class ExtensionDiscovery {
* To also find test modules, add
* @code
* $settings['extension_discovery_scan_tests'] = TRUE;
* @encode
* @endcode
* to your settings.php.
*
* The information is returned in an associative array, keyed by the extension
@ -209,12 +208,12 @@ class ExtensionDiscovery {
$files = array();
foreach ($searchdirs as $dir) {
// Discover all extensions in the directory, unless we did already.
if (!isset(static::$files[$dir][$include_tests])) {
static::$files[$dir][$include_tests] = $this->scanDirectory($dir, $include_tests);
if (!isset(static::$files[$this->root][$dir][$include_tests])) {
static::$files[$this->root][$dir][$include_tests] = $this->scanDirectory($dir, $include_tests);
}
// Only return extensions of the requested type.
if (isset(static::$files[$dir][$include_tests][$type])) {
$files += static::$files[$dir][$include_tests][$type];
if (isset(static::$files[$this->root][$dir][$include_tests][$type])) {
$files += static::$files[$this->root][$dir][$include_tests][$type];
}
}
@ -479,7 +478,7 @@ class ExtensionDiscovery {
else {
$filename = $name . '.' . $type;
}
if (!file_exists(dirname($pathname) . '/' . $filename)) {
if (!file_exists($this->root . '/' . dirname($pathname) . '/' . $filename)) {
$filename = NULL;
}

View file

@ -5,7 +5,7 @@ namespace Drupal\Core\Extension;
/**
* Interface for classes that parses Drupal's info.yml files.
*/
interface InfoParserInterface {
interface InfoParserInterface {
/**
* Parses Drupal module, theme and profile .info.yml files.

View file

@ -21,7 +21,7 @@ interface ModuleInstallerInterface {
* To install test modules add
* @code
* $settings['extension_discovery_scan_tests'] = TRUE;
* @encode
* @endcode
* to your settings.php.
*
* @param string[] $module_list

View file

@ -39,4 +39,5 @@ interface ModuleUninstallValidatorInterface {
* @see template_preprocess_system_modules_uninstall()
*/
public function validate($module);
}

View file

@ -54,7 +54,7 @@ class ThemeHandler implements ThemeHandlerInterface {
protected $state;
/**
* The config installer to install configuration.
* The config installer to install configuration.
*
* @var \Drupal\Core\Config\ConfigInstallerInterface
*/
@ -495,4 +495,5 @@ class ThemeHandler implements ThemeHandlerInterface {
}
return FALSE;
}
}

View file

@ -21,7 +21,7 @@ interface ThemeHandlerInterface {
* Whether any of the given themes have been installed.
*
* @throws \Drupal\Core\Extension\ExtensionNameLengthException
* Thrown when the theme name is to long
* Thrown when the theme name is to long.
*
* @deprecated in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0.
* Use the theme_installer service instead.

View file

@ -21,7 +21,7 @@ interface ThemeInstallerInterface {
* Whether any of the given themes have been installed.
*
* @throws \Drupal\Core\Extension\ExtensionNameLengthException
* Thrown when the theme name is to long
* Thrown when the theme name is to long.
*/
public function install(array $theme_list, $install_dependencies = TRUE);

View file

@ -81,7 +81,7 @@ use Drupal\Core\Utility\UpdateException;
*
* See system_hook_info() for all hook groups defined by Drupal core.
*
* @see hook_hook_info_alter().
* @see hook_hook_info_alter()
*/
function hook_hook_info() {
$hooks['token_info'] = array(