interface ChildOfMicrositeLookupInterface 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
Defines a class for looking up a microsite given a node.
Hierarchy
- interface \Drupal\entity_hierarchy_microsite\ChildOfMicrositeLookupInterface
Expanded class hierarchy of ChildOfMicrositeLookupInterface
All classes that implement ChildOfMicrositeLookupInterface
2 files declare their use of ChildOfMicrositeLookupInterface
- MicrositeCacheContext.php in modules/
entity_hierarchy_microsite/ src/ Cache/ MicrositeCacheContext.php - MicrositePluginTrait.php in modules/
entity_hierarchy_microsite/ src/ Plugin/ MicrositePluginTrait.php
File
- modules/
entity_hierarchy_microsite/ src/ ChildOfMicrositeLookupInterface.php, line 10
Namespace
Drupal\entity_hierarchy_micrositeView source
interface ChildOfMicrositeLookupInterface {
/**
* Gets microsites the node belongs to.
*
* @param \Drupal\node\NodeInterface $node
* Node.
* @param string $field_name
* Field name.
*
* @return \Drupal\entity_hierarchy_microsite\Entity\MicrositeInterface[]
* Microsites.
*/
public function findMicrositesForNodeAndField(NodeInterface $node, $field_name);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChildOfMicrositeLookupInterface:: |
public | function | Gets microsites the node belongs to. | 1 |