t('Label'); $header['pattern'] = $this->t('Pattern'); $header['type'] = $this->t('Pattern type'); $header['conditions'] = $this->t('Conditions'); return $header + parent::buildHeader(); } /** * {@inheritdoc} */ public function buildRow(EntityInterface $entity) { /* @var \Drupal\pathauto\PathautoPatternInterface $entity */ $row['label'] = $entity->label(); $row['patern']['#markup'] = $entity->getPattern(); $row['type']['#markup'] = $entity->getAliasType()->getLabel(); $row['conditions']['#theme'] = 'item_list'; foreach ($entity->getSelectionConditions() as $condition) { $row['conditions']['#items'][] = $condition->summary(); } return $row + parent::buildRow($entity); } }