Commit 608d53a1 authored by catch's avatar catch
Browse files

Issue #2851394 by GoZ, hgunicamp, oknate, jungle, wolffereast, tameeshb,...

Issue #2851394 by GoZ, hgunicamp, oknate, jungle, wolffereast, tameeshb, mmatsoo, ridhimaabrol24, jofitz, swarad07, tanc, shaktik, dimaro, shashikant_chauhan, MerryHamster, quietone, nitesh624, martin_q, boaloysius, gaurav.kapoor, nitvirus, ankithashetty, Munavijayalakshmi, kostyashupenko, leolando.tan, amit.drupal, ravi.shankar, akashkrishnan01, Swapnil_Kotwal, Saviktor, mrinalini9, anmolgoyal74, Venkatesh Rajan.J, shimpy, lomasr, Dinesh18, shubham.prakash, mahtab_alam, markdorison, cilefen, longwave, bleen, xjm, alexpott, gmaltoni: Fix grammar 'a' to 'an' when necessary

(cherry picked from commit 1d6e7e25)
parent a2dd35a3
......@@ -143,7 +143,7 @@ function drupal_find_theme_functions($cache, $prefixes) {
// Find theme functions that implement possible "suggestion" variants of
// registered theme hooks and add those as new registered theme hooks.
// The 'pattern' key defines a common prefix that all suggestions must
// start with. The default is the name of the hook followed by '__'. An
// start with. The default is the name of the hook followed by '__'. A
// 'base hook' key is added to each entry made for a found suggestion,
// so that common functionality can be implemented for all suggestions of
// the same base hook. To keep things simple, deep hierarchy of
......
......@@ -15,7 +15,7 @@ class InvalidPluginDefinitionException extends PluginException {
protected $pluginId;
/**
* Constructs a InvalidPluginDefinitionException.
* Constructs an InvalidPluginDefinitionException.
*
* For the remaining parameters see \Exception.
*
......
......@@ -8,7 +8,7 @@
class PluginNotFoundException extends PluginException {
/**
* Construct an PluginNotFoundException exception.
* Construct a PluginNotFoundException exception.
*
* For the remaining parameters see \Exception.
*
......
......@@ -45,8 +45,8 @@ class Html {
* <command> tag anymore.
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/command.
* - The 'manifest' attribute is omitted because it only exists for the <html>
* tag. That tag only makes sense in a HTML-served-as-HTML context, in which
* case relative URLs are guaranteed to work.
* tag. That tag only makes sense in an HTML-served-as-HTML context, in
* which case relative URLs are guaranteed to work.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
* @see https://stackoverflow.com/questions/2725156/complete-list-of-html-tag-attributes-which-have-a-url-value
......
......@@ -242,14 +242,14 @@ public static function isExternal($path) {
* TRUE if the URL has the same domain and base path.
*
* @throws \InvalidArgumentException
* Exception thrown when a either $url or $bath_url are not fully qualified.
* Exception thrown when either $url or $base_url are not fully qualified.
*/
public static function externalIsLocal($url, $base_url) {
// Some browsers treat \ as / so normalize to forward slashes.
$url = str_replace('\\', '/', $url);
// Leading control characters may be ignored or mishandled by browsers, so
// assume such a path may lead to an non-local location. The \p{C} character
// assume such a path may lead to a non-local location. The \p{C} character
// class matches all UTF-8 control, unassigned, and private characters.
if (preg_match('/^\p{C}/u', $url) !== 0) {
return FALSE;
......
......@@ -55,7 +55,7 @@ class AccessManager implements AccessManagerInterface {
protected $checkProvider;
/**
* Constructs a AccessManager instance.
* Constructs an AccessManager instance.
*
* @param \Drupal\Core\Routing\RouteProviderInterface $route_provider
* The route provider.
......
......@@ -70,7 +70,7 @@ class EmailAction extends ConfigurableActionBase implements ContainerFactoryPlug
protected $emailValidator;
/**
* Constructs a EmailAction object.
* Constructs an EmailAction object.
*
* @param array $configuration
* A configuration array containing information about the plugin instance.
......
......@@ -21,7 +21,7 @@ abstract class EntityActionBase extends ActionBase implements DependentPluginInt
protected $entityTypeManager;
/**
* Constructs a EntityActionBase object.
* Constructs an EntityActionBase object.
*
* @param mixed[] $configuration
* A configuration array containing information about the plugin instance.
......
......@@ -71,7 +71,7 @@ class AjaxResponseAttachmentsProcessor implements AttachmentsResponseProcessorIn
protected $moduleHandler;
/**
* Constructs a AjaxResponseAttachmentsProcessor object.
* Constructs an AjaxResponseAttachmentsProcessor object.
*
* @param \Drupal\Core\Asset\AssetResolverInterface $asset_resolver
* An asset resolver.
......
......@@ -3,7 +3,7 @@
namespace Drupal\Core\Ajax;
/**
* Defines an AJAX command to open content in a dialog in a off-canvas dialog.
* Defines an AJAX command to open content in a dialog in an off-canvas tray.
*
* @ingroup ajax
*/
......@@ -18,7 +18,7 @@ class OpenOffCanvasDialogCommand extends OpenDialogCommand {
* Constructs an OpenOffCanvasDialogCommand object.
*
* The off-canvas dialog differs from the normal modal provided by
* OpenDialogCommand in that a off-canvas has built in positioning and
* OpenDialogCommand in that an off-canvas has built in positioning and
* behaviors. Drupal provides a built-in off-canvas dialog for this purpose,
* so the selector is hard-coded in the call to the parent constructor.
*
......
......@@ -34,7 +34,7 @@ class UpdateBuildIdCommand implements CommandInterface {
protected $new;
/**
* Constructs a UpdateBuildIdCommand object.
* Constructs an UpdateBuildIdCommand object.
*
* @param string $old
* The old build_id.
......
......@@ -25,7 +25,7 @@ class ArchiverManager extends DefaultPluginManager {
protected $fileSystem;
/**
* Constructs a ArchiverManager object.
* Constructs an ArchiverManager object.
*
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
......
......@@ -3,7 +3,7 @@
namespace Drupal\Core\Archiver;
/**
* Defines a archiver implementation for .tar files.
* Defines an archiver implementation for .tar files.
*/
class Tar implements ArchiverInterface {
......
......@@ -3,7 +3,7 @@
namespace Drupal\Core\Archiver;
/**
* Defines a archiver implementation for .zip files.
* Defines an archiver implementation for .zip files.
*
* @link http://php.net/zip
*/
......
......@@ -16,7 +16,7 @@ interface AssetDumperInterface {
* The file extension of this asset.
*
* @return string
* An URI to access the dumped asset.
* A URI to access the dumped asset.
*/
public function dump($data, $file_extension);
......
......@@ -21,7 +21,7 @@ interface ConfigFactoryInterface {
public function get($name);
/**
* Returns an mutable configuration object for a given name.
* Returns a mutable configuration object for a given name.
*
* Should not be used for config that will have runtime effects. Therefore it
* is always loaded override free.
......
......@@ -23,7 +23,7 @@
*
* @see \Drupal\Core\Config\StorageComparerInterface
*
* The ConfigImporter has a identifier which is used to construct event names.
* The ConfigImporter has an identifier which is used to construct event names.
* The events fired during an import are:
* - ConfigEvents::IMPORT_VALIDATE: Events listening can throw a
* \Drupal\Core\Config\ConfigImporterException to prevent an import from
......@@ -1039,7 +1039,7 @@ protected function importInvokeRename($collection, $rename_name) {
}
/**
* Determines if a import is already running.
* Determines if an import is already running.
*
* @return bool
* TRUE if an import is already running, FALSE if not.
......
......@@ -59,7 +59,7 @@ public function __construct(EntityTypeInterface $entity_type, $conjunction, Conf
* Overrides \Drupal\Core\Entity\Query\QueryBase::condition().
*
* Additional to the syntax defined in the QueryInterface you can use
* placeholders (*) to match all keys of an subarray. Let's take the follow
* placeholders (*) to match all keys of a subarray. Let's take the follow
* yaml file as example:
* @code
* level1:
......
......@@ -1722,7 +1722,7 @@ public function commit() {
}
/**
* Retrieves an unique ID from a given sequence.
* Retrieves a unique ID from a given sequence.
*
* Use this function if for some reason you can't use a serial field. For
* example, MySQL has no ways of reading of the current value of a sequence
......
......@@ -38,7 +38,7 @@ abstract class Database {
const RETURN_INSERT_ID = 3;
/**
* An nested array of all active connections. It is keyed by database name
* A nested array of all active connections. It is keyed by database name
* and target.
*
* @var array
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment