public function ChildEntityWarning::__construct in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x src/Information/ChildEntityWarning.php \Drupal\entity_hierarchy\Information\ChildEntityWarning::__construct()
Constructs a new ChildEntityWarning object.
Parameters
\SplObjectStorage $relatedEntities: Related entities (children or parents).
\Drupal\Core\Cache\RefinableCacheableDependencyInterface $cache: Cache metadata.
\PNX\NestedSet\Node|null $parent: (optional) Parent if exists.
File
- src/
Information/ ChildEntityWarning.php, line 47
Class
- ChildEntityWarning
- Defines a value object for a child entity warning.
Namespace
Drupal\entity_hierarchy\InformationCode
public function __construct(\SplObjectStorage $relatedEntities, RefinableCacheableDependencyInterface $cache, Node $parent = NULL) {
$this->relatedEntities = $relatedEntities;
$this->cache = $cache;
$this->parent = $parent;
}