public function ConsentAgreementListBuilder::buildRow in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Entity/ConsentAgreementListBuilder.php \Drupal\gdpr_consent\Entity\ConsentAgreementListBuilder::buildRow()
- 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\EntityCode
public function buildRow(EntityInterface $entity) {
$row = [
'title' => $entity
->get('title')->value,
'mode' => $entity
->get('mode')->value,
];
return $row + parent::buildRow($entity);
}