christian.wiedemann → made their first commit to this issue’s fork.
Should we move this feature to the current 3.0.x branch?
christian.wiedemann → created an issue. See original summary → .
christian.wiedemann → made their first commit to this issue’s fork.
heyho nice wishes from munich. I rebased and added the abstract to the class.
1. From my point of view the PropTypeConversionTrait should be a service (PropTypeConverter). And the base class should simple provide the service for easy access.
2. We should avoid renderInIsolation. What is the use case behind. Can we check for '#markup' or #plain_text'?
$renderer = \Drupal::service('renderer');
$value = (string) $renderer->renderInIsolation($array);
if ($strip_tags_from_render_arrays) {
$value = strip_tags($value);
}