interface InputMatchInterface in Varbase Media 9.0.x
Same name and namespace in other branches
- 8.7 modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface
- 8.5 modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface
- 8.6 modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface
An interface for media type plugins to tell if they can handle mixed input.
Hierarchy
- interface \Drupal\entity_browser_generic_embed\InputMatchInterface
Expanded class hierarchy of InputMatchInterface
All classes that implement InputMatchInterface
7 files declare their use of InputMatchInterface
- VarbaseMediaAudioFile.php in src/
Plugin/ media/ Source/ VarbaseMediaAudioFile.php - VarbaseMediaFile.php in src/
Plugin/ media/ Source/ VarbaseMediaFile.php - VarbaseMediaImage.php in src/
Plugin/ media/ Source/ VarbaseMediaImage.php - VarbaseMediaInstagram.php in modules/
varbase_media_instagram/ src/ Plugin/ media/ Source/ VarbaseMediaInstagram.php - VarbaseMediaRemoteVideo.php in src/
Plugin/ media/ Source/ VarbaseMediaRemoteVideo.php
File
- modules/
entity_browser_generic_embed/ src/ InputMatchInterface.php, line 10
Namespace
Drupal\entity_browser_generic_embedView source
interface InputMatchInterface {
/**
* Checks if this media type can handle a given input value.
*
* @param mixed $value
* The input value.
* @param \Drupal\media\MediaTypeInterface $bundle
* The media bundle that is using this plugin.
*
* @return bool
* TRUE if the input can be handled by this plugin, FALSE otherwise.
*/
public function appliesTo($value, MediaTypeInterface $bundle);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InputMatchInterface:: |
public | function | Checks if this media type can handle a given input value. | 1 |