public function ChildOfMicrositeLookupInterface::findMicrositesForNodeAndField in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 modules/entity_hierarchy_microsite/src/ChildOfMicrositeLookupInterface.php \Drupal\entity_hierarchy_microsite\ChildOfMicrositeLookupInterface::findMicrositesForNodeAndField()
Gets microsites the node belongs to.
Parameters
\Drupal\node\NodeInterface $node: Node.
string $field_name: Field name.
Return value
\Drupal\entity_hierarchy_microsite\Entity\MicrositeInterface[] Microsites.
1 method overrides ChildOfMicrositeLookupInterface::findMicrositesForNodeAndField()
- ChildOfMicrositeLookup::findMicrositesForNodeAndField in modules/
entity_hierarchy_microsite/ src/ ChildOfMicrositeLookup.php - Gets microsites the node belongs to.
File
- modules/
entity_hierarchy_microsite/ src/ ChildOfMicrositeLookupInterface.php, line 23
Class
- ChildOfMicrositeLookupInterface
- Defines a class for looking up a microsite given a node.
Namespace
Drupal\entity_hierarchy_micrositeCode
public function findMicrositesForNodeAndField(NodeInterface $node, $field_name);