diff --git a/core/lib/Drupal/Core/Extension/ExtensionList.php b/core/lib/Drupal/Core/Extension/ExtensionList.php index 2bc63e8..bc54b10 100644 --- a/core/lib/Drupal/Core/Extension/ExtensionList.php +++ b/core/lib/Drupal/Core/Extension/ExtensionList.php @@ -158,7 +158,7 @@ protected function getCacheId() { * The machine name of the extension. * * @return bool - * true if the extension exists (whether installed or not) and false if not. + * True if the extension exists (whether installed or not) and false if not. */ public function extensionExists($name) { $extensions = $this->listExtensions(); @@ -425,7 +425,7 @@ public function getFilename($extension_name) { if (isset($this->addedFileNames[$extension_name])) { return $this->addedFileNames[$extension_name]; } - else if (isset($this->fileNames[$extension_name])) { + elseif (isset($this->fileNames[$extension_name])) { return $this->fileNames[$extension_name]; } throw new \InvalidArgumentException("The {$this->type} $extension_name does not exist."); diff --git a/core/lib/Drupal/Core/Extension/ModuleExtensionList.php b/core/lib/Drupal/Core/Extension/ModuleExtensionList.php index 088f3e4..14521b7 100644 --- a/core/lib/Drupal/Core/Extension/ModuleExtensionList.php +++ b/core/lib/Drupal/Core/Extension/ModuleExtensionList.php @@ -158,7 +158,7 @@ protected function ensureRequiredDependencies(Extension $module, array $modules $modules[$dependency_name]->info['required'] = TRUE; $modules[$dependency_name]->info['explanation'] = $this->t('Dependency of required module @module', array('@module' => $module->info['name'])); // Ensure any dependencies it has are required. - $this->ensureRequiredDependencies($modules[$dependency_name], $modules); + $this->ensureRequiredDependencies($modules[$dependency_name], $modules); } } } diff --git a/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php b/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php index 3d61d2e..cfc6323 100644 --- a/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php +++ b/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php @@ -311,6 +311,9 @@ public function getModuleDirectories(); * @return string * Returns the human readable name of the module or the machine name passed * in if no matching module is found. + * + * @deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. + * Use \Drupal::service('module_listing')->getName() instead. */ public function getName($module); diff --git a/core/lib/Drupal/Core/Session/AccountProxyInitializedInterface.php b/core/lib/Drupal/Core/Session/AccountProxyInitializedInterface.php index 11a0644..550f051 100644 --- a/core/lib/Drupal/Core/Session/AccountProxyInitializedInterface.php +++ b/core/lib/Drupal/Core/Session/AccountProxyInitializedInterface.php @@ -7,12 +7,16 @@ namespace Drupal\Core\Session; +/** + * Extends the account proxy interface with a "is initialized" method. + */ interface AccountProxyInitializedInterface extends AccountProxyInterface { /** * Returns whether the account is already initialized. * * @return bool + * TRUE, when the account was initialized already. */ public function accountIsInitialized();