Version 1
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / DerivativeInspectionInterface.php
1 <?php
2
3 namespace Drupal\Component\Plugin;
4
5 /**
6  * Provides a plugin interface for providing derivative metadata inspection.
7  */
8 interface DerivativeInspectionInterface {
9
10   /**
11    * Gets the base_plugin_id of the plugin instance.
12    *
13    * @return string
14    *   The base_plugin_id of the plugin instance.
15    */
16   public function getBaseId();
17
18   /**
19    * Gets the derivative_id of the plugin instance.
20    *
21    * @return string|null
22    *   The derivative_id of the plugin instance NULL otherwise.
23    */
24   public function getDerivativeId();
25
26 }