summaryrefslogtreecommitdiffstats
path: root/core/modules/field_layout
diff options
context:
space:
mode:
authorxjm2017-10-30 20:46:59 (GMT)
committerxjm2017-10-30 20:46:59 (GMT)
commit1ebb2e1f32cadb5471859100d08645ea31211103 (patch)
tree9f71dae19e1e5ead375c1c09190d199f62a2075c /core/modules/field_layout
parent334beedad6a078b96db84c5d5fe7e245a39fb3ee (diff)
Issue #2660124 by tim.plunkett, samuel.mortenson, phenaproxima, tstoeckler, yoroy, dead_arm, xjm, Manuel Garcia, EclipseGc, larowlan, DyanneNova, tedbow: Dynamically build layout icons based on well formed config
Diffstat (limited to 'core/modules/field_layout')
-rw-r--r--core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php b/core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php
index 043e5c7..170bcd0 100644
--- a/core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php
+++ b/core/modules/field_layout/src/Form/FieldLayoutEntityDisplayFormTrait.php
@@ -87,6 +87,8 @@ trait FieldLayoutEntityDisplayFormTrait {
'#tree' => TRUE,
];
+ $form['field_layouts']['settings_wrapper']['icon'] = $layout_plugin->getPluginDefinition()->getIcon();
+
if ($layout_plugin instanceof PluginFormInterface) {
$form['field_layouts']['settings_wrapper']['layout_settings'] = [];
$subform_state = SubformState::createForSubform($form['field_layouts']['settings_wrapper']['layout_settings'], $form, $form_state);