rodnamoc β created an issue.
rodnamoc β created an issue.
rodnamoc β created an issue.
This is a very simple module.
Create an entity, for example, node with the title Test.
In the Structure->Block layout menu, place a block with the name Content and the category "entity block", in the block settings in the entity field, select Content entity with the title Test.
Save it.
Enjoy.
Maybe this message will save someone a couple of minutes of time.
The routing definition code with the form and custom access does not work for my standard installation, it shows a 404 page. Only the code with the controller works.
Not working
honda_model.simple_form:
path: '/honda/simpleform'
defaults:
_form: '\Drupal\honda_model\Form\SimpleForm'
_title: 'SimpleForm'
requirements:
_custom_access: '\Drupal\honda_model\Controller\SimpleFormController::access'
Working
honda_model.simple_form:
path: '/honda/simpleform'
defaults:
_controller: '\Drupal\honda_model\Controller\SimpleFormController::content'
_title: 'SimpleForm'
requirements:
_custom_access: '\Drupal\honda_model\Controller\SimpleFormController::access'
There is a mention of this in other documents, but it is not obvious here.
rodnamoc β created an issue.
This module might work https://www.drupal.org/project/single_content_sync β
Of course I cleared the cache.
I am using an entity generated by content entity builder.
Now it becomes clear that when you initially edit rows, the column is correctly written to the database, but when you reopen the editing form, incorrect, repeated values ββare entered into the field widgets.
The same happen with the taxonomy column, but the pattern of what is happening is not clear.
after updating to version 2.0.2, such an option was actually found in the field widget. Thank you.
I'm sorry, this still doesn't work for me. When I add a custom entity with bundle as the first column and edit it, no errors occur. When editing again, only the entity with id=1 is shown in all rows of this column. This can be seen in the attached screenshot of the editing form.
rodnamoc β created an issue.