You are here

public function ConsentAgreementListBuilder::buildRow in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php \Drupal\gdpr_consent\Entity\ConsentAgreementListBuilder::buildRow()
  2. 8 modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php \Drupal\gdpr_consent\Entity\ConsentAgreementListBuilder::buildRow()

Builds a row for an entity in the entity listing.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list.

Return value

array A render array structure of fields for this entity.

Overrides EntityListBuilder::buildRow

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php, line 29

Class

ConsentAgreementListBuilder
Provides a list controller for gdpr_consent entities.

Namespace

Drupal\gdpr_consent\Entity

Code

public function buildRow(EntityInterface $entity) {
  $row = [
    'title' => $entity
      ->get('title')->value,
    'mode' => $entity
      ->get('mode')->value,
  ];
  return $row + parent::buildRow($entity);
}