Pull merge.
[yaffs-website] / web / modules / contrib / metatag / metatag_views / metatag_views.module
index 4a09b611298edb6d7d5e0e402ec47f486339df1a..02b9e9cd88282a856b9e5f690777e3bc636131f7 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 /**
+ * @file
  * Contains hook implementations for the metatag_views module.
  */
 
@@ -10,16 +11,16 @@ use Drupal\views\ViewExecutable;
 use Drupal\views\Views;
 
 /**
- * Gets the metatags of a specific view, if set.
+ * Gets the meta tags of a specific view, if set.
  *
  * @param mixed $view
  *   The view id, view config entity or view executable.
- * @param string $display
+ * @param string $display_id
  *   The display id. If empty uses the preselected display if $view is a
  *   ViewExecutable, otherwise the default display.
  *
  * @return array|null
- *   The metatags if set, null otherwise.
+ *   The meta tags if set, null otherwise.
  */
 function metatag_get_view_tags($view, $display_id = NULL) {
   if (empty($view)) {
@@ -50,7 +51,7 @@ function metatag_get_view_tags($view, $display_id = NULL) {
 /**
  * Implements hook_metatags_alter().
  */
-function metatag_views_metatags_alter(&$metatags, $context) {
+function metatag_views_metatags_alter(array &$metatags, array &$context) {
   if (!$context['entity'] instanceof ViewEntityInterface) {
     return;
   }