public function InputMatchInterface::appliesTo in Lightning Media 8.2
Same name and namespace in other branches
- 8.4 src/InputMatchInterface.php \Drupal\lightning_media\InputMatchInterface::appliesTo()
- 8 src/InputMatchInterface.php \Drupal\lightning_media\InputMatchInterface::appliesTo()
- 8.3 src/InputMatchInterface.php \Drupal\lightning_media\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 modules/
lightning_media_video/ src/ Plugin/ media/ Source/ Video.php - Checks if this media type can handle a given input value.
File
- src/
InputMatchInterface.php, line 23
Class
- InputMatchInterface
- An interface for media type plugins to tell if they can handle mixed input.
Namespace
Drupal\lightning_mediaCode
public function appliesTo($value, MediaTypeInterface $bundle);