public function InsertPosition::__construct in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x src/Storage/InsertPosition.php \Drupal\entity_hierarchy\Storage\InsertPosition::__construct()
Constructs a new InsertPosition object.
Parameters
\PNX\NestedSet\Node $reference: Node to insert before or after.
bool $insert: TRUE if inserting rather than moving.
string $direction: Direction constants - one of Before/After/Below.
File
- src/
Storage/ InsertPosition.php, line 49
Class
- InsertPosition
- Defines a value object for an insert position.
Namespace
Drupal\entity_hierarchy\StorageCode
public function __construct(Node $reference, $insert = TRUE, $direction = self::DIRECTION_BEFORE) {
$this->reference = $reference;
$this->direction = $direction;
$this->insert = $insert;
}