| @@ 216-222 (lines=7) @@ | ||
| 213 | * @throws \Exception |
|
| 214 | * @return |
|
| 215 | */ |
|
| 216 | public function getDrupalText($name) { |
|
| 217 | $text = $this->getDrupalParameter('text'); |
|
| 218 | if (!isset($text[$name])) { |
|
| 219 | throw new \Exception(sprintf('No such Drupal string: %s', $name)); |
|
| 220 | } |
|
| 221 | return $text[$name]; |
|
| 222 | } |
|
| 223 | ||
| 224 | /** |
|
| 225 | * Returns a specific css selector. |
|
| @@ 230-236 (lines=7) @@ | ||
| 227 | * @param $name |
|
| 228 | * string CSS selector name |
|
| 229 | */ |
|
| 230 | public function getDrupalSelector($name) { |
|
| 231 | $text = $this->getDrupalParameter('selectors'); |
|
| 232 | if (!isset($text[$name])) { |
|
| 233 | throw new \Exception(sprintf('No such selector configured: %s', $name)); |
|
| 234 | } |
|
| 235 | return $text[$name]; |
|
| 236 | } |
|
| 237 | ||
| 238 | /** |
|
| 239 | * Get active Drupal Driver. |
|