| @@ 176-182 (lines=7) @@ | ||
| 173 | * @throws \Exception |
|
| 174 | * @return |
|
| 175 | */ |
|
| 176 | public function getDrupalText($name) { |
|
| 177 | $text = $this->getDrupalParameter('text'); |
|
| 178 | if (!isset($text[$name])) { |
|
| 179 | throw new \Exception(sprintf('No such Drupal string: %s', $name)); |
|
| 180 | } |
|
| 181 | return $text[$name]; |
|
| 182 | } |
|
| 183 | ||
| 184 | /** |
|
| 185 | * Returns a specific css selector. |
|
| @@ 190-196 (lines=7) @@ | ||
| 187 | * @param $name |
|
| 188 | * string CSS selector name |
|
| 189 | */ |
|
| 190 | public function getDrupalSelector($name) { |
|
| 191 | $text = $this->getDrupalParameter('selectors'); |
|
| 192 | if (!isset($text[$name])) { |
|
| 193 | throw new \Exception(sprintf('No such selector configured: %s', $name)); |
|
| 194 | } |
|
| 195 | return $text[$name]; |
|
| 196 | } |
|
| 197 | ||
| 198 | /** |
|
| 199 | * Get active Drupal Driver. |
|