{}
Definition at line 18 of file ReferenceLookup.php.
◆ __construct()
Drupal\metastore\Reference\ReferenceLookup::__construct |
( |
FactoryInterface |
$metastoreStorage, |
|
|
MetastoreItemFactoryInterface |
$metastoreItemFactory, |
|
|
CacheTagsInvalidatorInterface |
$invalidator, |
|
|
ModuleHandlerInterface |
$moduleHandler |
|
) |
| |
◆ decodeJsonMetadata()
Drupal\metastore\Reference\ReferenceLookup::decodeJsonMetadata |
( |
string |
$json | ) |
|
|
protected |
Decode the supplied JSON metadata.
- Parameters
-
string | $json | JSON metadata string. |
- Returns
- array JSON metadata identifier and object.
Definition at line 106 of file ReferenceLookup.php.
◆ getReferencers()
Drupal\metastore\Reference\ReferenceLookup::getReferencers |
( |
string |
$schemaId, |
|
|
string |
$referenceId, |
|
|
string |
$propertyId |
|
) |
| |
{Get UUIDs of all metastore items referencing an ID through a property.
- Parameters
-
string | $schemaId | The type of metadata to look for references within. |
string | $referenceId | The UUID of the reference we're looking for. |
string | $propertyId | The metadata property we hope to find it in. |
- Returns
- array Array of metastore UUIDs for matching items.
}
- Todo:
- Refactor when this storage vs item factory mess is resolved.
Implements Drupal\metastore\ReferenceLookupInterface.
Definition at line 58 of file ReferenceLookup.php.
◆ invalidateReferencerCacheTags()
Drupal\metastore\Reference\ReferenceLookup::invalidateReferencerCacheTags |
( |
string |
$schemaId, |
|
|
string |
$referenceId, |
|
|
string |
$propertyId |
|
) |
| |
Invalidate cache tags in any items pointing to a reference.
- Parameters
-
string | $schemaId | The type of metadata to look for references within. |
string | $referenceId | The UUID of the reference we're looking for. |
string | $propertyId | The metadata property we hope to find it in. |
Definition at line 87 of file ReferenceLookup.php.
◆ $metastoreItemFactory
Drupal\metastore\Reference\ReferenceLookup::$metastoreItemFactory |
|
protected |
◆ $metastoreStorage
Drupal\metastore\Reference\ReferenceLookup::$metastoreStorage |
|
protected |