This repository has been archived on 2025-09-29. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/web/modules/contrib/webform/src/WebformAddonsManagerInterface.php
2017-03-16 15:29:07 +00:00

49 lines
1,001 B
PHP

<?php
namespace Drupal\webform;
/**
* Defines an interface for webform add-ons classes.
*/
interface WebformAddonsManagerInterface {
/**
* 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();
}