You are here

protected property FruitPluginManager::$defaults in Plug 7

A set of defaults to be referenced by $this->processDefinition() if additional processing of plugins is necessary or helpful for development purposes.

Type: array

Overrides DefaultPluginManager::$defaults

File

modules/plug_example/src/FruitPluginManager.php, line 23
Contains \Drupal\plug_example\FruitPluginManager.

Class

FruitPluginManager
Name plugin manager.

Namespace

Drupal\plug_example

Code

protected $defaults = array(
  // Human readable label for the fruit.
  'label' => '',
  // The amount of sugar in the fruit.
  'sugar' => '',
  // Is the fruit slimy?
  'slimy' => FALSE,
  // Default class for breakpoint implementations.
  'class' => 'Drupal\\plug_example\\Plugin\\fruit\\Fruit',
  // The plugin id. Set by the plugin system based on the top-level YAML key.
  'id' => '',
);