You are here

ProcessorBase.php in Purge 8.3

File

src/Plugin/Purge/Processor/ProcessorBase.php
View source
<?php

namespace Drupal\purge\Plugin\Purge\Processor;

use Drupal\Core\Plugin\PluginBase;

/**
 * Provides base implementations for processors.
 */
abstract class ProcessorBase extends PluginBase implements ProcessorInterface {

  /**
   * {@inheritdoc}
   */
  public function getLabel() {
    return $this
      ->getPluginDefinition()['label'];
  }

  /**
   * {@inheritdoc}
   */
  public function getDescription() {
    return $this
      ->getPluginDefinition()['description'];
  }

}

Classes

Namesort descending Description
ProcessorBase Provides base implementations for processors.