function EntityFormDisplay::getPluginCollections
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php \Drupal\Core\Entity\Entity\EntityFormDisplay::getPluginCollections()
- 8.9.x core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php \Drupal\Core\Entity\Entity\EntityFormDisplay::getPluginCollections()
- 11.x core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php \Drupal\Core\Entity\Entity\EntityFormDisplay::getPluginCollections()
File
-
core/
lib/ Drupal/ Core/ Entity/ Entity/ EntityFormDisplay.php, line 340
Class
- EntityFormDisplay
- Configuration entity.
Namespace
Drupal\Core\Entity\EntityCode
public function getPluginCollections() {
$configurations = [];
foreach ($this->getComponents() as $field_name => $configuration) {
if (!empty($configuration['type']) && ($field_definition = $this->getFieldDefinition($field_name))) {
$configurations[$configuration['type']] = $configuration + [
'field_definition' => $field_definition,
'form_mode' => $this->mode,
];
}
}
return [
'widgets' => new EntityDisplayPluginCollection($this->pluginManager, $configurations),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.