public function Key::getPluginCollections in Key 8
Gets the plugin collections used by this object.
Return value
\Drupal\Component\Plugin\LazyPluginCollection[] An array of plugin collections, keyed by the property name they use to store their configuration.
Overrides ObjectWithPluginCollectionInterface::getPluginCollections
File
- src/
Entity/ Key.php, line 247
Class
- Key
- Defines the Key entity.
Namespace
Drupal\key\EntityCode
public function getPluginCollections() {
$plugin_collections = [];
foreach ($this->pluginTypes as $type) {
$plugin_collections[$type . '_settings'] = $this
->getPluginCollection($type);
}
return $plugin_collections;
}