Commit 763f1934 authored by Thalles Ferreira's avatar Thalles Ferreira Committed by Thalles Vinicius Ferreira Santos
Browse files

Issue #3074327 by thalles: Add doc block comments on getModalToShowByPage of ModalPage.php

parent 0e55197b
Loading
Loading
Loading
Loading
+11 −0
Changes for src/ModalPage.php: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -188,6 +188,17 @@ class ModalPage {
    return trim($text);
  }

  /**
   * Undocumented function
   *
   * @param object $modal
   *   The object modal.
   * @param string $currentPath
   *   The current path.
   *
   * @return object
   *   Retunr the modal.
   */
  public function getModalToShowByPage($modal, $currentPath) {
    $pages = $modal->pages->value;
    $pages = explode(PHP_EOL, $pages);