You are here

interface InputMatchInterface in Varbase Media 9.0.x

Same name and namespace in other branches
  1. 8.7 modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface
  2. 8.5 modules/entity_browser_generic_embed/src/InputMatchInterface.php \Drupal\entity_browser_generic_embed\InputMatchInterface
  3. 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

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

... See full list

File

modules/entity_browser_generic_embed/src/InputMatchInterface.php, line 10

Namespace

Drupal\entity_browser_generic_embed
View 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

Namesort descending Modifiers Type Description Overrides
InputMatchInterface::appliesTo public function Checks if this media type can handle a given input value. 1