public static function getFiltersSettings(Paragraph $p) {
    if ($p->field_prgf_repeat_schedule_filt->isEmpty()) {
      return [];
    }

    $filters = [];
    foreach ($p->field_prgf_repeat_schedule_filt->getValue() as $f) {
      $filters[$f['value']] = $f['value'];
    }

    return $filters;
  }
public static function getFiltersSettings(Paragraph $p) {
    if ($p->field_prgf_repeat_schedule_filt->isEmpty()) {
      return [];
    }

    $filters = [];
    foreach ($p->field_prgf_repeat_schedule_filt->getValue() as $f) {
      $filters[$f['value']] = $f['value'];
    }

    return $filters;
  }
public static function getFiltersSettings ( Paragraph $ p ) { if ( $ p -> field_prgf_repeat_schedule_filt -> isEmpty ( ) ) { return [ ] ; } $ filters = [ ] ; foreach ( $ p -> field_prgf_repeat_schedule_filt -> getValue ( ) as $ f ) { $ filters [ $ f [ 'value' ] ] = $ f [ 'value' ] ; } return $ filters ; }
Gets value of paragraph filters field.

@param \Drupal\paragraphs\Entity\Paragraph $p
The paragraph to take data from.

@return array
An associative array of values.
Gets value of paragraph filters field .