4 * Contains \Drupal\DrupalExtension\Context\DrupalSubContextInterface.
7 namespace Drupal\DrupalExtension\Context;
9 use Behat\Behat\Context\Context;
10 use Drupal\DrupalDriverManager;
13 * Interface for subcontexts.
15 * Implement this interface if you want to provide custom Behat step definitions
16 * for your contributed modules. The class should be placed in a file named
17 * 'MYMODULE.behat.inc'.
19 * See the documentation on "Contributed module subcontexts".
21 interface DrupalSubContextInterface extends Context {
24 * Instantiates the subcontext.
26 * @param \Drupal\DrupalDriverManager $drupal
27 * The Drupal Driver manager.
29 public function __construct(DrupalDriverManager $drupal);