public function ScopeListBuilder::buildRow in OAuth2 Server 8
Same name and namespace in other branches
- 2.0.x src/ScopeListBuilder.php \Drupal\oauth2_server\ScopeListBuilder::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()
1 call to ScopeListBuilder::buildRow()
File
- src/
ScopeListBuilder.php, line 53
Class
- ScopeListBuilder
- Builds a listing of oauth2 server entities.
Namespace
Drupal\oauth2_serverCode
public function buildRow(EntityInterface $entity) {
/** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity */
$row = parent::buildRow($entity);
return [
'data' => [
'label' => [
'data' => $entity
->label(),
'class' => [
'oauth2-server-scope-name',
],
],
'operations' => $row['operations'],
],
'title' => $this
->t('ID: @name', [
'@name' => $entity
->id(),
]),
'class' => [
Html::cleanCssIdentifier($entity
->getEntityTypeId() . '-' . $entity
->id()),
],
];
}