return $entities;
} /**
* {@inheritdoc}
*/
public function buildHeader() { $header['label'
] =
$this->
t('Workspace'
);
$header['uid'
] =
$this->
t('Owner'
);
return $header + parent::
buildHeader();
} /**
* {@inheritdoc}
*/
public function buildRow(EntityInterface
$entity) { /** @var \Drupal\workspaces\WorkspaceInterface $entity */
if (isset($entity->_depth
) &&
$entity->_depth > 0
) { $indentation =
[ '#theme' => 'indentation',
'#size' =>
$entity->_depth,
];