express-8.x-1.x-dev/themes/contrib/bootstrap/src/Plugin/Provider/ProviderInterface.php
themes/contrib/bootstrap/src/Plugin/Provider/ProviderInterface.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | <?php /** * @file * Contains \Drupal\bootstrap\Plugin\Provider\ProviderInterface. */ namespace Drupal\bootstrap\Plugin\Provider; use Drupal\Component\Plugin\DerivativeInspectionInterface; use Drupal\Component\Plugin\PluginInspectionInterface; /** * ProviderInterface. * * @ingroup plugins_provider */ interface ProviderInterface extends PluginInspectionInterface, DerivativeInspectionInterface { /** * Retrieves the API URL if set. * * @return string * The API URL. */ public function getApi(); /** * Retrieves Provider assets for the active provider, if any. * * @param string|array $types * The type of asset to retrieve: "css" or "js", defaults to an array * array containing both if not set. * * @return array * If $type is a string or an array with only one (1) item in it, the * assets are returned as an indexed array of files. Otherwise, an * associative array is returned keyed by the type. */ public function getAssets( $types = NULL); /** * Retrieves the provider description. * * @return string * The provider description. */ public function getDescription(); /** * Retrieves the provider human-readable label. * * @return string * The provider human-readable label. */ public function getLabel(); /** * Retrieves the themes supported by the CDN provider. * * @return array * An array of themes. If the CDN provider does not support any it will * just be an empty array. */ public function getThemes(); /** * Retrieves the versions supported by the CDN provider. * * @return array * An array of versions. If the CDN provider does not support any it will * just be an empty array. */ public function getVersions(); /** * Flag indicating that the API data parsing failed. * * @return bool * TRUE or FALSE */ public function hasError(); /** * Flag indicating that the API data was manually imported. * * @return bool * TRUE or FALSE */ public function isImported(); /** * Processes the provider plugin definition upon discovery. * * @param array $definition * The provider plugin definition. * @param string $plugin_id * The plugin identifier. */ public function processDefinition( array & $definition , $plugin_id ); /** * Processes the provider plugin definition upon discovery. * * @param array $json * The JSON data retrieved from the API request. * @param array $definition * The provider plugin definition. */ public function processApi( array $json , array & $definition ); } |