- Issue created by @Grevil
- Assigned to abhishek_virasat
- Issue was unassigned.
- 🇩🇪Germany Grevil
Note, that the typing inside the plugin definitions is fine (All portlets extending from "HomeboxPortletTypeBase")!
This code here: https://git.drupalcode.org/project/homebox/-/blob/3.0.x/src/Entity/Homeb...
($this->get('portlets')->getValue();
) doesn't return the typed field item values. 'portlets' is initialised as a BaseField definition here. And the "homebox_portlet" FieldItem is defined here. We have defined the "propertyDefinitions()" method with the correct data definitions and created the schema.yml, but the output of $this->get('portlets')->getValue();
will return all the properties casted to string ("layoutRegionWeight" and "enabled" shouldn't be string by definition):
Config inspector won't throw any errors. This bug makes the whole code quite error-prone, as we are using data types everywhere else in the code.
Find the issue and fix it.
Active
3.0
Code
Note, that the typing inside the plugin definitions is fine (All portlets extending from "HomeboxPortletTypeBase")!