| @@ 195-201 (lines=7) @@ | ||
| 192 | * @throws \Exception |
|
| 193 | * @return |
|
| 194 | */ |
|
| 195 | public function getDrupalText($name) { |
|
| 196 | $text = $this->getDrupalParameter('text'); |
|
| 197 | if (!isset($text[$name])) { |
|
| 198 | throw new \Exception(sprintf('No such Drupal string: %s', $name)); |
|
| 199 | } |
|
| 200 | return $text[$name]; |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|
| 204 | * Returns a specific css selector. |
|
| @@ 209-215 (lines=7) @@ | ||
| 206 | * @param $name |
|
| 207 | * string CSS selector name |
|
| 208 | */ |
|
| 209 | public function getDrupalSelector($name) { |
|
| 210 | $text = $this->getDrupalParameter('selectors'); |
|
| 211 | if (!isset($text[$name])) { |
|
| 212 | throw new \Exception(sprintf('No such selector configured: %s', $name)); |
|
| 213 | } |
|
| 214 | return $text[$name]; |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Get active Drupal Driver. |
|