You are here

YamlFormAddonsManagerInterface.php in YAML Form 8

Namespace

Drupal\yamlform

File

src/YamlFormAddonsManagerInterface.php
View source
<?php

namespace Drupal\yamlform;


/**
 * Defines an interface for form add-ons classes.
 */
interface YamlFormAddonsManagerInterface {

  /**
   * Get add-on project information.
   *
   * @param string $name
   *   The name of the add-on project.
   *
   * @return array
   *   An associative array containing an add-on project.
   */
  public function getProject($name);

  /**
   * Get add-on projects.
   *
   * @param string|null $category
   *   (optional) Category to filter project by.
   *
   * @return array
   *   An associative array of add-on projects.
   */
  public function getProjects($category = NULL);

  /**
   * Get add-on projects that support third party settings.
   *
   * @return array
   *   An associative array containing add-on projects that support third party
   *   settings.
   */
  public function getThirdPartySettings();

  /**
   * Get add-on categories.
   *
   * @return array
   *   An array of add-on categories.
   */
  public function getCategories();

}

Interfaces

Namesort descending Description
YamlFormAddonsManagerInterface Defines an interface for form add-ons classes.