You are here

trait SourceFieldPluginTrait in Lightning Media 8

Same name and namespace in other branches
  1. 8.2 src/SourceFieldPluginTrait.php \Drupal\lightning_media\SourceFieldPluginTrait
  2. 8.3 src/SourceFieldPluginTrait.php \Drupal\lightning_media\SourceFieldPluginTrait

Basic implementation of SourceFieldInterface.

Hierarchy

Deprecated

in Lightning 2.2.1 and will be removed in Lightning 2.3.0. Use \Drupal\media\MediaSourceInterface::getSourceFieldDefinition() instead.

File

src/SourceFieldPluginTrait.php, line 13

Namespace

Drupal\lightning_media
View source
trait SourceFieldPluginTrait {

  /**
   * Implements InputMatchInterface::getSourceFieldDefinition().
   */
  public function getSourceFieldDefinition(MediaTypeInterface $media_type) {
    return $this
      ->getSourceFieldDefinition($media_type);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SourceFieldPluginTrait::getSourceFieldDefinition public function Implements InputMatchInterface::getSourceFieldDefinition().