"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/lib/Drupal/Component/Plugin/ConfigurableInterface.php" (26 Nov 2020, 746 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ConfigurableInterface.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Drupal\Component\Plugin;
    4 
    5 /**
    6  * Provides an interface for a configurable plugin.
    7  *
    8  * @ingroup plugin_api
    9  */
   10 interface ConfigurableInterface {
   11 
   12   /**
   13    * Gets this plugin's configuration.
   14    *
   15    * @return array
   16    *   An array of this plugin's configuration.
   17    */
   18   public function getConfiguration();
   19 
   20   /**
   21    * Sets the configuration for this plugin instance.
   22    *
   23    * @param array $configuration
   24    *   An associative array containing the plugin's configuration.
   25    */
   26   public function setConfiguration(array $configuration);
   27 
   28   /**
   29    * Gets default configuration for this plugin.
   30    *
   31    * @return array
   32    *   An associative array with the default configuration.
   33    */
   34   public function defaultConfiguration();
   35 
   36 }