public function FileMetadata::isMetadataLoaded in File metadata manager 8
Same name and namespace in other branches
- 8.2 src/FileMetadata.php \Drupal\file_mdm\FileMetadata::isMetadataLoaded()
Checks if file metadata has been already loaded.
Parameters
string $metadata_id: The id of the FileMetadata plugin.
Return value
bool TRUE if metadata is loaded, FALSE otherwise.
Overrides FileMetadataInterface::isMetadataLoaded
File
- src/
FileMetadata.php, line 229
Class
- FileMetadata
- A file metadata object.
Namespace
Drupal\file_mdmCode
public function isMetadataLoaded($metadata_id) {
if ($plugin = $this
->getFileMetadataPlugin($metadata_id)) {
return $plugin
->isMetadataLoaded();
}
return FALSE;
}