forked from jhedstrom/drupalextension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creation of entities of any type with base field value parsing
- Loading branch information
Showing
4 changed files
with
137 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/Drupal/DrupalExtension/Hook/Scope/AfterEntityCreateScope.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* @file | ||
* After entity create scope. | ||
*/ | ||
namespace Drupal\DrupalExtension\Hook\Scope; | ||
|
||
use Behat\Testwork\Hook\Scope\HookScope; | ||
|
||
/** | ||
* Represents an Entity hook scope. | ||
*/ | ||
final class AfterEntityCreateScope extends BaseEntityScope | ||
{ | ||
|
||
/** | ||
* Return the scope name. | ||
* | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return self::AFTER; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/Drupal/DrupalExtension/Hook/Scope/BeforeEntityCreateScope.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Before entity create scope. | ||
*/ | ||
namespace Drupal\DrupalExtension\Hook\Scope; | ||
|
||
use Behat\Testwork\Hook\Scope\HookScope; | ||
|
||
/** | ||
* Represents an Entity hook scope. | ||
*/ | ||
final class BeforeEntityCreateScope extends BaseEntityScope | ||
{ | ||
|
||
/** | ||
* Return the scope name. | ||
* | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return self::BEFORE; | ||
} | ||
} |