Verified Commit 2509cbe2 authored by Jess's avatar Jess
Browse files

task: #2079245 Provide better explanation of plugin configuration array for...

task: #2079245 Provide better explanation of plugin configuration array for the PluginBase constructor, and reference plugin API docs

By: joachim
By: larowlan
By: royalpinto007
By: xjm
By: griff phillips
By: kristiantosney
By: kristof de weyer
By: ekes
By: aurora-norris
By: rachel_norfolk
By: benjas
By: tim.plunkett
(cherry picked from commit a19dfee8)
parent b78d0078
Loading
Loading
Loading
Loading
Loading
+5 −0
Changes for core/lib/Drupal/Component/Plugin/PluginBase.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -45,10 +45,15 @@ abstract class PluginBase implements PluginInspectionInterface, DerivativeInspec
   *
   * @param array $configuration
   *   A configuration array containing information about the plugin instance.
   *   If the plugin is being created by calling
   *   \Drupal\Component\Plugin\Factory\FactoryInterface::createInstance(),
   *   this is the configuration array passed to that method.
   * @param string $plugin_id
   *   The plugin ID for the plugin instance.
   * @param mixed $plugin_definition
   *   The plugin implementation definition.
   *
   * @see https://www.drupal.org/docs/8/api/plugin-api/plugin-definitions
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition) {
    $this->configuration = $configuration;