You are here

PardotFormMapFormatterPluginInterface.php in Pardot Integration 2.x

File

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

namespace Drupal\pardot\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Form\FormStateInterface;

/**
 * Defines an interface for Pardot form map plugin plugins.
 */
interface PardotFormMapFormatterPluginInterface extends PluginInspectionInterface {

  /**
   * Get the form field from the form state and apply formatting.
   *
   * @param \Drupal\Core\Form\FormStateInterface $form_state
   *   The form state that holds the input values.
   *
   * @return mixed
   *   The formatted value or null i guess.
   */
  public function getFormattedValue(FormStateInterface $form_state);

}

Interfaces

Namesort descending Description
PardotFormMapFormatterPluginInterface Defines an interface for Pardot form map plugin plugins.