/**
  * Builds a renderable list of operation links for the entity.
  *
  * @param \Drupal\config_translation\ConfigMapperInterface $mapper
  *   The mapper.
  *
  * @return array
  *   A renderable array of operation links.
  *
  * @see \Drupal\Core\Entity\EntityList::buildOperations()
  */
 protected function buildOperations(ConfigMapperInterface $mapper)
 {
     // Retrieve and sort operations.
     $operations = $mapper->getOperations();
     uasort($operations, 'Drupal\\Component\\Utility\\SortArray::sortByWeightElement');
     $build = array('#type' => 'operations', '#links' => $operations);
     return $build;
 }