Skip to content
Snippets Groups Projects
Commit ae827074 authored by catch's avatar catch
Browse files

Issue #1811214 by Mile23, naveenvalecha, tisteegz: Add missing type hinting to...

Issue #1811214 by Mile23, naveenvalecha, tisteegz: Add missing type hinting to Language module docblocks
parent 1c3c4610
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -13,7 +13,7 @@
/**
* Define language types.
*
* @return
* @return array
* An associative array of language type definitions. The keys are the
* identifiers, which are also used as names for global variables representing
* the types in the bootstrap phase. The values are associative arrays that
......@@ -51,7 +51,7 @@ function hook_language_types_info() {
/**
* Perform alterations on language types.
*
* @param $language_types
* @param array $language_types
* Array of language type definitions.
*
* @see hook_language_types_info()
......@@ -66,7 +66,7 @@ function hook_language_types_info_alter(array &$language_types) {
/**
* Perform alterations on language negotiation methods.
*
* @param $negotiation_info
* @param array $negotiation_info
* Array of language negotiation method definitions.
*
* @ingroup language_negotiation
......
......@@ -51,7 +51,7 @@ public function getDefinedLanguageTypes();
/**
* Stores language types configuration.
*
* @param array
* @param array $config
* An indexed array with the following keys_
* - configurable: an array of configurable language type names.
* - all: an array of all the defined language type names.
......
......@@ -54,7 +54,7 @@ class LanguageRequestSubscriber implements EventSubscriberInterface {
*
* @param \Drupal\language\ConfigurableLanguageManagerInterface $language_manager
* The language manager service.
* @param \Drupal\language\LanguageNegotiatorInterface
* @param \Drupal\language\LanguageNegotiatorInterface $negotiator
* The language negotiator.
* @param \Drupal\Core\StringTranslation\Translator\TranslatorInterface $translation;
* The translation service.
......
......@@ -73,7 +73,7 @@ class PathProcessorLanguage implements InboundPathProcessorInterface, OutboundPa
* A config factory object for retrieving configuration settings.
* @param \Drupal\language\ConfigurableLanguageManagerInterface $language_manager
* The configurable language manager.
* @param \Drupal\language\LanguageNegotiatorInterface
* @param \Drupal\language\LanguageNegotiatorInterface $negotiator
* The language negotiator.
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current active user.
......
......@@ -62,7 +62,7 @@ public static function createInstance(ContainerInterface $container, EntityTypeI
* The entity type definition.
* @param \Drupal\Core\Entity\EntityStorageInterface $storage
* The entity storage controller class.
* @param \Drupal\Core\Language\LanguageManagerInterface
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
* The language manager.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The factory for configuration objects.
......
......@@ -160,7 +160,7 @@ public function getNegotiationMethodInstance($method_id);
/**
* Returns the ID of the language type's primary language negotiation method.
*
* @param $type
* @param string $type
* The language type.
*
* @return string
......@@ -172,9 +172,9 @@ public function getPrimaryNegotiationMethod($type);
/**
* Checks whether a language negotiation method is enabled for a language type.
*
* @param $method_id
* @param string $method_id
* The language negotiation method ID.
* @param $type
* @param string $type
* (optional) The language type. If none is passed, all the configurable
* language types will be inspected.
*
......
......@@ -100,9 +100,9 @@ public function testEntityTranslationDefaultLanguageViaCode() {
/**
* Creates a new node content type.
*
* @param name
* @param string $name
* The content type name.
* @param $langcode
* @param string $langcode
* Default language code of the nodes of this type.
*/
protected function createContentType($name, $langcode) {
......@@ -123,9 +123,9 @@ protected function createContentType($name, $langcode) {
/**
* Creates a new node of given type and language using Entity API.
*
* @param $type
* @param string $type
* The node content type.
* @param $langcode
* @param string $langcode
* (optional) Language code to pass to entity create.
*
* @return \Drupal\node\NodeInterface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment