summaryrefslogtreecommitdiffstats
path: root/src/Plugin/IndexRecordContentTransformationBase.php
blob: 64c417eb44a9382bdaaa6dd5d8ec2a1136dad673 (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\views_natural_sort\Plugin;

use Drupal\Component\Plugin\PluginBase;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Base class for Views Natural Sort Index Record Content Transformation plugins.
 */
abstract class IndexRecordContentTransformationBase extends PluginBase implements IndexRecordContentTransformationInterface, ContainerFactoryPluginInterface {

  public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
  }
  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static(
      $configuration,
      $plugin_id,
      $plugin_definition
    );
  }
}