Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / src / Drupal / DrupalExtension / Hook / Scope / EntityScope.php
diff --git a/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Hook/Scope/EntityScope.php b/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/Hook/Scope/EntityScope.php
new file mode 100644 (file)
index 0000000..641ec01
--- /dev/null
@@ -0,0 +1,31 @@
+<?php
+/**
+ * @file
+ * Entity scope.
+ */
+namespace Drupal\DrupalExtension\Hook\Scope;
+
+use Behat\Testwork\Hook\Scope\HookScope;
+
+/**
+ * Represents an Entity hook scope.
+ */
+interface EntityScope extends HookScope {
+
+  const BEFORE = 'entity.create.before';
+  const AFTER = 'entity.create.after';
+
+  /**
+   * Returns the context.
+   *
+   * @return \Behat\Behat\Context\Context
+   */
+  public function getContext();
+
+  /**
+   * Returns scope entity.
+   *
+   * @return StepNode
+   */
+  public function getEntity();
+}