You are here

interface FillPdfAdminFormHelperInterface in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 src/FillPdfAdminFormHelperInterface.php \Drupal\fillpdf\FillPdfAdminFormHelperInterface

Interface FillPdfAdminFormHelperInterface.

@package Drupal\fillpdf

Hierarchy

Expanded class hierarchy of FillPdfAdminFormHelperInterface

All classes that implement FillPdfAdminFormHelperInterface

3 files declare their use of FillPdfAdminFormHelperInterface
FillPdfAdminFormHelper.php in src/Service/FillPdfAdminFormHelper.php
FillPdfFormFieldForm.php in src/Form/FillPdfFormFieldForm.php
FillPdfFormForm.php in src/Form/FillPdfFormForm.php

File

src/FillPdfAdminFormHelperInterface.php, line 10

Namespace

Drupal\fillpdf
View source
interface FillPdfAdminFormHelperInterface {

  /**
   * Returns render array for a link to a token tree shown as a dialog.
   *
   * @param string[]|string $token_types
   *   (optional) Array of token types. Defaults to 'all'. Note that it's the
   *   caller's duty to translate entity types into token types.
   *
   * @return array
   *   Render array.
   */
  public function getAdminTokenForm($token_types = 'all');

  /**
   * Returns available file storage options for use with FAPI radio buttons.
   *
   * Any visible, writeable wrapper can potentially be used.
   *
   * @param array $label_templates
   *   (optional) Associative array of label templates keyed by scheme name.
   *
   * @return array
   *   Stream wrapper descriptions, keyed by scheme.
   */
  public function schemeOptions(array $label_templates = []);

  /**
   * Returns all FillPdfForms with template PDFs stored in a particular scheme.
   *
   * @return string
   *   Scheme of the templates PDFs.
   */
  public function getFormsByTemplateScheme($scheme);

  /**
   * Returns the help text for FillPDF replacements.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
   *   The help text.
   */
  public static function getReplacementsDescription();

}

Members

Namesort descending Modifiers Type Description Overrides
FillPdfAdminFormHelperInterface::getAdminTokenForm public function Returns render array for a link to a token tree shown as a dialog. 1
FillPdfAdminFormHelperInterface::getFormsByTemplateScheme public function Returns all FillPdfForms with template PDFs stored in a particular scheme. 1
FillPdfAdminFormHelperInterface::getReplacementsDescription public static function Returns the help text for FillPDF replacements. 1
FillPdfAdminFormHelperInterface::schemeOptions public function Returns available file storage options for use with FAPI radio buttons. 1