You are here

FreelinkingPluginBase.php in Freelinking 8.3

Same filename and directory in other branches
  1. 4.0.x src/Plugin/FreelinkingPluginBase.php

File

src/Plugin/FreelinkingPluginBase.php
View source
<?php

namespace Drupal\freelinking\Plugin;

use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\PluginBase;

/**
 * Freelinking plugin base class.
 */
abstract class FreelinkingPluginBase extends PluginBase implements FreelinkingPluginInterface {

  /**
   * {@inheritdoc}
   */
  public function defaultConfiguration() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getConfiguration() {
    return $this->configuration;
  }

  /**
   * {@inheritdoc}
   */
  public function setConfiguration(array $configuration) {
    $this->configuration = $configuration;
  }

  /**
   * {@inheritdoc}
   */
  public function settingsForm(array $form, FormStateInterface $form_state) {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function calculateDependencies() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function isHidden() {
    return $this->pluginDefinition['hidden'];
  }

  /**
   * {@inheritdoc}
   */
  public function getFailoverPluginId() {
    return '';
  }

}

Classes

Namesort descending Description
FreelinkingPluginBase Freelinking plugin base class.