public function MetatagDefaultsListBuilder::buildRow in Metatag 8
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
- src/
MetatagDefaultsListBuilder.php, line 69
Class
- MetatagDefaultsListBuilder
- Provides a listing of Metatag defaults entities.
Namespace
Drupal\metatagCode
public function buildRow(EntityInterface $entity) {
$row['label'] = $this
->getLabelAndConfig($entity);
$row['status'] = $entity
->status() ? $this
->t('Active') : $this
->t('Disabled');
return $row + parent::buildRow($entity);
}