You are here

interface ConfigurableInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Plugin/ConfigurableInterface.php \Drupal\Component\Plugin\ConfigurableInterface
  2. 9 core/lib/Drupal/Component/Plugin/ConfigurableInterface.php \Drupal\Component\Plugin\ConfigurableInterface

Provides an interface for a configurable plugin.

Hierarchy

Expanded class hierarchy of ConfigurableInterface

All classes that implement ConfigurableInterface

Related topics

21 files declare their use of ConfigurableInterface
BlockPluginInterface.php in core/lib/Drupal/Core/Block/BlockPluginInterface.php
CKEditor5PluginConfigurableInterface.php in core/modules/ckeditor5/src/Plugin/CKEditor5PluginConfigurableInterface.php
ConditionInterface.php in core/lib/Drupal/Core/Condition/ConditionInterface.php
ConfigurableActionBase.php in core/lib/Drupal/Core/Action/ConfigurableActionBase.php
ConfigurableSearchPluginInterface.php in core/modules/search/src/Plugin/ConfigurableSearchPluginInterface.php

... See full list

File

core/lib/Drupal/Component/Plugin/ConfigurableInterface.php, line 10

Namespace

Drupal\Component\Plugin
View source
interface ConfigurableInterface {

  /**
   * Gets this plugin's configuration.
   *
   * @return array
   *   An array of this plugin's configuration.
   */
  public function getConfiguration();

  /**
   * Sets the configuration for this plugin instance.
   *
   * @param array $configuration
   *   An associative array containing the plugin's configuration.
   */
  public function setConfiguration(array $configuration);

  /**
   * Gets default configuration for this plugin.
   *
   * @return array
   *   An associative array with the default configuration.
   */
  public function defaultConfiguration();

}

Members