public function InputMatchInterface::appliesTo 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::appliesTo()
- 8.6 modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface::appliesTo()
- 9.0.x modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface::appliesTo()
Checks if this media type can handle a given input value.
Parameters
mixed $value: The input value.
\Drupal\media\MediaTypeInterface $bundle: The media bundle that is using this plugin.
Return value
bool TRUE if the input can be handled by this plugin, FALSE otherwise.
1 method overrides InputMatchInterface::appliesTo()
- Video::appliesTo in src/
Plugin/ media/ Source/ Video.php - Checks if this media type can handle a given input value.
File
- modules/
entity_browser_generic_embed/ src/ InputMatchInterface.php, line 23
Class
- InputMatchInterface
- An interface for media type plugins to tell if they can handle mixed input.
Namespace
Drupal\entity_browser_generic_embedCode
public function appliesTo($value, MediaTypeInterface $bundle);