diff --git a/core/modules/system/lib/Drupal/system/DateFormatListController.php b/core/modules/system/lib/Drupal/system/DateFormatListController.php index fc0e4bb..0c76642 100644 --- a/core/modules/system/lib/Drupal/system/DateFormatListController.php +++ b/core/modules/system/lib/Drupal/system/DateFormatListController.php @@ -7,11 +7,12 @@ namespace Drupal\system; +use Drupal\Component\Utility\String; use Drupal\Core\Config\Entity\ConfigEntityListController; use Drupal\Core\Entity\EntityInterface; /** - * @todo. + * Provides a listing of date formats. */ class DateFormatListController extends ConfigEntityListController { @@ -38,19 +39,9 @@ public function buildHeader() { /** * {@inheritdoc} */ - public function getOperations(EntityInterface $entity) { - $operations = parent::getOperations($entity); - $uri = $entity->uri(); - $operations['edit']['href'] = $uri['path']; - return $operations; - } - - /** - * {@inheritdoc} - */ public function buildRow(EntityInterface $entity) { $row['id'] = $entity->id(); - $row['label'] = $entity->label(); + $row['label'] = String::checkPlain($entity->label()); $row['pattern'] = format_date(REQUEST_TIME, $entity->id()); $row['operations']['data'] = $this->buildOperations($entity); return $row;