From 22bc33ac781e81b4b20529be5b0729288a5e5da2 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 12:49:46 -0500 Subject: [PATCH 1/8] debug --- plugins/dh.display.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index 399373e..4c8c8a2 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -926,6 +926,7 @@ class EntityGroupConfigurator { // @todo -- deprecate pass by reference for form & form_state in future versions // - Drupal 8 EntityForm = public function buildForm(array $form, FormStateInterface $form_state) // always return form + error_log("Called buildForm"); $this->applyEntityTokens(); $this->applySettings(); // this stores settings in form state for later use. From 27909afcd1be4ed31b376102a079e4edc445fc74 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 12:53:12 -0500 Subject: [PATCH 2/8] debug --- plugins/dh.display.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index 4c8c8a2..ee59dd3 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -926,8 +926,8 @@ class EntityGroupConfigurator { // @todo -- deprecate pass by reference for form & form_state in future versions // - Drupal 8 EntityForm = public function buildForm(array $form, FormStateInterface $form_state) // always return form - error_log("Called buildForm"); $this->applyEntityTokens(); + error_log("Called buildForm :: applyEntityTokens"); $this->applySettings(); // this stores settings in form state for later use. // we previously had it before applySettings(), but should not matter? Check if it breaks. From 032f95cb435dcf43b108f6bf86f1918de85fac50 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 12:53:37 -0500 Subject: [PATCH 3/8] debug --- plugins/dh.display.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index ee59dd3..04e18d3 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -927,8 +927,8 @@ class EntityGroupConfigurator { // - Drupal 8 EntityForm = public function buildForm(array $form, FormStateInterface $form_state) // always return form $this->applyEntityTokens(); - error_log("Called buildForm :: applyEntityTokens"); $this->applySettings(); + error_log("Called buildForm :: applySettings"); // this stores settings in form state for later use. // we previously had it before applySettings(), but should not matter? Check if it breaks. $form_state['conf']['entity_settings'][$this->groupname] = $this->conf; From 7bf6c4df953012a1d53b1ca70d3fc83a765b11f4 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 12:54:20 -0500 Subject: [PATCH 4/8] debug --- plugins/dh.display.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index 04e18d3..7bb4239 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -928,7 +928,6 @@ class EntityGroupConfigurator { // always return form $this->applyEntityTokens(); $this->applySettings(); - error_log("Called buildForm :: applySettings"); // this stores settings in form state for later use. // we previously had it before applySettings(), but should not matter? Check if it breaks. $form_state['conf']['entity_settings'][$this->groupname] = $this->conf; @@ -983,6 +982,7 @@ class EntityGroupConfigurator { } } $this->renderFormRow($form, $form_state, $line, $row); + error_log("Called buildForm :: renderFormRow"); if ( $this->use_rebuild_code) { $entity_parents = $row_parents; array_unshift($entity_parents, 'entities'); From a4aa083c0023920831c69be7553288c87874a095 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 12:56:22 -0500 Subject: [PATCH 5/8] debug --- plugins/dh.display.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index 7bb4239..9055bca 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -902,6 +902,7 @@ class EntityGroupConfigurator { // @todo: explicitly send form_state to plugins $row->form_state = $form_state; // stash a link here to allow queries by plugins $this->formRowDefaults($rowform, $row); + error_log("Called buildForm :: renderFormRow :: formRowDefaults"); $this->formRowPlugins($rowform, $row); $this->formRowVisibility($rowform, $row); //dpm($row, "This row"); @@ -982,7 +983,6 @@ class EntityGroupConfigurator { } } $this->renderFormRow($form, $form_state, $line, $row); - error_log("Called buildForm :: renderFormRow"); if ( $this->use_rebuild_code) { $entity_parents = $row_parents; array_unshift($entity_parents, 'entities'); From e2ed370830f8d0e89140db1ff73f6a4a6abb7296 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 12:56:57 -0500 Subject: [PATCH 6/8] debug --- plugins/dh.display.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index 9055bca..807afff 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -902,8 +902,8 @@ class EntityGroupConfigurator { // @todo: explicitly send form_state to plugins $row->form_state = $form_state; // stash a link here to allow queries by plugins $this->formRowDefaults($rowform, $row); - error_log("Called buildForm :: renderFormRow :: formRowDefaults"); $this->formRowPlugins($rowform, $row); + error_log("Called buildForm :: renderFormRow :: formRowPlugins"); $this->formRowVisibility($rowform, $row); //dpm($row, "This row"); foreach ($this->form_columns as $colname) { From 1cae362f947148a8c66fe88362122af6a9962921 Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Fri, 3 Dec 2021 13:02:32 -0500 Subject: [PATCH 7/8] debug --- plugins/dh.display.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/dh.display.inc b/plugins/dh.display.inc index 807afff..399373e 100644 --- a/plugins/dh.display.inc +++ b/plugins/dh.display.inc @@ -903,7 +903,6 @@ class EntityGroupConfigurator { $row->form_state = $form_state; // stash a link here to allow queries by plugins $this->formRowDefaults($rowform, $row); $this->formRowPlugins($rowform, $row); - error_log("Called buildForm :: renderFormRow :: formRowPlugins"); $this->formRowVisibility($rowform, $row); //dpm($row, "This row"); foreach ($this->form_columns as $colname) { From fc7bb11343ab8d10e1bf3284ba22439c54a793fa Mon Sep 17 00:00:00 2001 From: Burgholzer Date: Mon, 6 Dec 2021 16:54:05 -0500 Subject: [PATCH 8/8] simple feature type management --- dh.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dh.module b/dh.module index 787760c..6b7d24c 100644 --- a/dh.module +++ b/dh.module @@ -26,7 +26,7 @@ function dh_entity_info() { 'id' => 'fid', 'label' => 'name', ), - 'access callback' => 'dh_feature_type_access', + 'access callback' => 'dh_access', 'module' => 'dh', // Enable the entity API's admin UI. 'admin ui' => array(