Add new data types and config schema alters to support tokens in more fields

Issue information

From user: jurgenhaas

Related to !566 (merged)

Contribution record

Fork management

Problem/Motivation

This is the resulting task that we identified in #3555371: Can't make calculations, tokens are not properly resolved and we learned that Drupal Canvas already went through similar exercises, see Drupal\canvas\Plugin\DataTypeOverride and \Drupal\canvas\Hook\ComponentSourceHooks::configSchemaInfoAlter.

Proposed resolution

Introduce a data type FloatOrToken, and alter the schema for all plugins with number fields that also support the use of tokens.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information