Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / vendor / jcalderonzumba / gastonjs / src / Browser / BrowserFrameTrait.php
1 <?php
2
3 namespace Zumba\GastonJS\Browser;
4
5 /**
6  * Trait BrowserFrameTrait
7  * @package Zumba\GastonJS\Browser
8  */
9 trait BrowserFrameTrait {
10   /**
11    * Back to the parent of the iframe if possible
12    * @return mixed
13    * @throws \Zumba\GastonJS\Exception\BrowserError
14    * @throws \Exception
15    */
16   public function popFrame() {
17     return $this->command("pop_frame");
18   }
19
20   /**
21    * Goes into the iframe to do stuff
22    * @param string $name
23    * @param int    $timeout
24    * @return mixed
25    * @throws \Zumba\GastonJS\Exception\BrowserError
26    * @throws \Exception
27    */
28   public function pushFrame($name, $timeout = null) {
29     return $this->command("push_frame", $name, $timeout);
30   }
31 }