protected function Table::isCommerceField in Views Aggregator Plus 8
Checks if the field comes from a Commerce entity.
Parameters
object $field_handler: The object belonging to the View result field.
Return value
bool TRUE if the field is from a Commerce entity.
2 calls to Table::isCommerceField()
- Table::getCellRaw in src/
Plugin/ views/ style/ Table.php - Returns the raw, unrendered result at the intersection of column and row.
- Table::renderNewValue in src/
Plugin/ views/ style/ Table.php - Returns the rendered value for a new (raw) value of a table cell.
File
- src/
Plugin/ views/ style/ Table.php, line 958
Class
- Table
- Style plugin to render each item as a row in a table.
Namespace
Drupal\views_aggregator\Plugin\views\styleCode
protected function isCommerceField($field_handler) {
if (isset($field_handler->definition['entity_type'])) {
return substr($field_handler->definition['entity_type'], 0, 9) === 'commerce_';
}
else {
return FALSE;
}
}