Categories
CMS Drupal Mastering Development

How do I inject css classes to a rendered field with a view style?

I maintain a module that provides several views styles. I have been unable to figure out how to get the fields where a users custom css entered in the views UI is then output with the view when I have to use style_plugin->getField (Drupal 8) or style_plugin->get_field (Drupal 7). It returns a "rendered" field, but […]

Categories
CMS Drupal Mastering Development

How do I inject css classes to a rendered field with a view style?

I maintain a module that provides several views styles. I have been unable to figure out how to get the fields where a users custom css entered in the views UI is then output with the view when I have to use style_plugin->getField (Drupal 8) or style_plugin->get_field (Drupal 7). It returns a "rendered" field, but […]

Categories
CMS Drupal Mastering Development

How do I inject css classes to a rendered field with a view style?

I maintain a module that provides several views styles. I have been unable to figure out how to get the fields where a users custom css entered in the views UI is then output with the view when I have to use style_plugin->getField (Drupal 8) or style_plugin->get_field (Drupal 7). It returns a "rendered" field, but […]