drupal-typed-data-by-example
drupal-typed-data-by-example copied to clipboard
Drupal's Typed Data API by example
The [drupal.org documentation](https://www.drupal.org/docs/drupal-apis/typed-data-api/data-type-plugins) (as well as the code from other core modules) suggests that Typed Data Definitions can be discovered by the Typed Data Manager when a module is loaded,...
Stop me if you've heard this before. I have products in my Drupal site, and products in another (maybe not Drupal) site. I want to run a process and sync...
The typed data manager has a few `create` methods and it can be confusing. Do I need `create` or do I need `createInstance` or `createFromDataType` Not to mention all of...
Write better words about primitive data types and `getCastedValue`
It'd be nice to see if this is possible to provide examples for. Drupal core only has `\Drupal\Core\TypedData\Plugin\DataType\LanguageReference` and `\Drupal\Core\Entity\Plugin\DataType\EntityReference` as examples.