I have a Views Table Page in Drupal 8 that displays node titles. On the node, there's a checkbox field that when checked needs indicate to the Views Table Page that title is not to display.

I thought a prepocessor_views_view_field would achieve this, my question is the views processor hook function below correct?

 * Implements hook_preprocess_views_view_field()
 * @param $variables
function pnc_views_overrides_preprocess_views_view_field(&$variables){

  if ($variables['field']->field === 'field_display') {
    if($variables['field']->getValue($variables['row']) === 1){

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.