summaryrefslogtreecommitdiffstats
path: root/tests/linkit_media_test/src/Plugin/MediaEntity/Type/TestType.php
blob: a14b5cb501c3b61334a64e871ec83f6a19c64eb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Drupal\linkit_media_test\Plugin\MediaEntity\Type;

use Drupal\media_entity\Plugin\MediaEntity\Type\Generic;

/**
 * Provides generic media type.
 *
 * @MediaType(
 *   id = "test_type",
 *   label = @Translation("Test type"),
 *   description = @Translation("Test media type.")
 * )
 */
class TestType extends Generic {

  /**
   * {@inheritdoc}
   */
  public function defaultConfiguration() {
    return [
      'source_field' => 'field_media_file',
    ];
  }

}