Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / src / Drupal / DrupalExtension / Hook / Scope / EntityScope.php
1 <?php
2 /**
3  * @file
4  * Entity scope.
5  */
6 namespace Drupal\DrupalExtension\Hook\Scope;
7
8 use Behat\Testwork\Hook\Scope\HookScope;
9
10 /**
11  * Represents an Entity hook scope.
12  */
13 interface EntityScope extends HookScope {
14
15   const BEFORE = 'entity.create.before';
16   const AFTER = 'entity.create.after';
17
18   /**
19    * Returns the context.
20    *
21    * @return \Behat\Behat\Context\Context
22    */
23   public function getContext();
24
25   /**
26    * Returns scope entity.
27    *
28    * @return StepNode
29    */
30   public function getEntity();
31 }