You are here

public function InputMatchInterface::appliesTo in Lightning Media 8.3

Same name and namespace in other branches
  1. 8.4 src/InputMatchInterface.php \Drupal\lightning_media\InputMatchInterface::appliesTo()
  2. 8 src/InputMatchInterface.php \Drupal\lightning_media\InputMatchInterface::appliesTo()
  3. 8.2 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_media

Code

public function appliesTo($value, MediaTypeInterface $bundle);