6 namespace Drupal\DrupalExtension\Hook\Scope;
8 use Behat\Testwork\Hook\Scope\HookScope;
11 * Represents an Entity hook scope.
13 interface EntityScope extends HookScope {
15 const BEFORE = 'entity.create.before';
16 const AFTER = 'entity.create.after';
19 * Returns the context.
21 * @return \Behat\Behat\Context\Context
23 public function getContext();
26 * Returns scope entity.
30 public function getEntity();