public function Bynder::filterRemoteMetadata in Bynder 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/media/Source/Bynder.php \Drupal\bynder\Plugin\media\Source\Bynder::filterRemoteMetadata()
- 4.0.x src/Plugin/media/Source/Bynder.php \Drupal\bynder\Plugin\media\Source\Bynder::filterRemoteMetadata()
Returns a list of filtered remote metadata properties.
Parameters
array $metadata: The metadata items.
Return value
array Filtered list of remote metadata properties.
2 calls to Bynder::filterRemoteMetadata()
- Bynder::ensureMetadata in src/
Plugin/ media/ Source/ Bynder.php - Ensures the given media entity has Bynder metadata information in place.
- Bynder::hasMetadataChanged in src/
Plugin/ media/ Source/ Bynder.php - Compares the local metadata and the remote metadata in case it changed.
File
- src/
Plugin/ media/ Source/ Bynder.php, line 306
Class
- Bynder
- Provides media source plugin for Bynder.
Namespace
Drupal\bynder\Plugin\media\SourceCode
public function filterRemoteMetadata(array $metadata) {
return array_intersect_key($metadata, array_combine($this
->getRemoteMetadataProperties(), $this
->getRemoteMetadataProperties()));
}