interface InputMatchInterface in Varbase Media 8.5
Same name and namespace in other branches
- 8.7 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
- 9.0.x 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
3 files declare their use of InputMatchInterface
- Instagram.php in modules/
varbase_media_instagram/ src/ Plugin/ media/ Source/ Instagram.php - Twitter.php in modules/
varbase_media_twitter/ src/ Plugin/ media/ Source/ Twitter.php - Video.php in src/
Plugin/ media/ Source/ Video.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 |