OrganigramsListBuilder.php in Organigrams 8.2
File
src/OrganigramsListBuilder.php
View source
<?php
namespace Drupal\organigrams;
use Drupal\taxonomy\VocabularyListBuilder;
use Drupal\Core\Entity\EntityInterface;
class OrganigramsListBuilder extends VocabularyListBuilder {
public function buildRow(EntityInterface $entity) {
$row['label'] = $entity
->label();
if (!empty($entity
->getThirdPartySettings('organigrams'))) {
$row['label'] = $this
->t('Organigram:') . ' ' . $row['label'];
}
$row['description']['data'] = [
'#markup' => $entity
->getDescription(),
];
return $row + parent::buildRow($entity);
}
}