You are here

public function FileMetadataInterface::getFileMetadataPlugin in File metadata manager 8

Same name and namespace in other branches
  1. 8.2 src/FileMetadataInterface.php \Drupal\file_mdm\FileMetadataInterface::getFileMetadataPlugin()

Gets a FileMetadata plugin instance.

Parameters

string $metadata_id: The id of the plugin whose instance is to be returned. If it is does not exist, an instance is created.

Return value

\Drupal\file_mdm\Plugin\FileMetadataPluginInterface|null The FileMetadata plugin instance. NULL if no plugin is found.

1 method overrides FileMetadataInterface::getFileMetadataPlugin()
FileMetadata::getFileMetadataPlugin in src/FileMetadata.php
Gets a FileMetadata plugin instance.

File

src/FileMetadataInterface.php, line 88

Class

FileMetadataInterface
Provides an interface for file metadata objects.

Namespace

Drupal\file_mdm

Code

public function getFileMetadataPlugin($metadata_id);