if ($entity->
isDefaultSearch()) { $status =
$this->
t('Default'
);
} elseif ($entity->
status()) { $status =
$this->
t('Enabled'
);
} else { $status =
$this->
t('Disabled'
);
} $row['status'
]['#markup'
] =
$status;
if ($entity->
isIndexable()) { $status =
$entity->
getPlugin()->
indexStatus();
$row['progress'
]['#markup'
] =
$this->
t('%num_indexed of %num_total indexed',
[ '%num_indexed' =>
$status['total'
] -
$status['remaining'
],
'%num_total' =>
$status['total'
],
]);
} else { $row['progress'
]['#markup'
] =
$this->
t('Does not use index'
);
} return $row + parent::
buildRow($entity);
}