You are here

protected function GdprConsentAgreementEntityUIController::overviewTableRow in General Data Protection Regulation 7

Generates the row for the passed entity and may be overridden in order to customize the rows.

Parameters

$additional_cols: Additional columns to be added after the entity label column.

Overrides EntityDefaultUIController::overviewTableRow

File

modules/gdpr_consent/gdpr_consent.module, line 820
Contains hook implementations and shared functions.

Class

GdprConsentAgreementEntityUIController
Custom UI controller for the gdpr_consent_agreement entity type.

Code

protected function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
  $additional_cols = array(
    $entity->agreement_type == GDPR_CONSENT_TYPE_EXPLICIT ? 'Explicit' : 'Implicit',
  );
  $row = parent::overviewTableRow($conditions, $id, $entity, $additional_cols);
  return $row;
}