diff --git a/core/modules/image/lib/Drupal/image/ImageStyleListController.php b/core/modules/image/lib/Drupal/image/ImageStyleListController.php index 9dcdb42..9051d5d 100644 --- a/core/modules/image/lib/Drupal/image/ImageStyleListController.php +++ b/core/modules/image/lib/Drupal/image/ImageStyleListController.php @@ -10,7 +10,7 @@ use Drupal\Core\Entity\EntityInterface; /** - * Provides a listing of contact categories. + * Provides a listing of image styles. */ class ImageStyleListController extends ConfigEntityListController { @@ -34,43 +34,11 @@ public function buildRow(EntityInterface $entity) { } /** - * Overrides EntityListController::getOperations(); - * - public function getOperations(EntityInterface $entity) { - $operations = parent::getOperations($entity); - $uri = $entity->uri(); - - $operations['list'] = array( - 'title' => t('list links'), - 'href' => $uri['path'], - 'options' => $uri['options'], - 'weight' => 0, - ); - $operations['edit']['title'] = t('edit menu'); - $operations['add'] = array( - 'title' => t('add link'), - 'href' => $uri['path'] . '/add', - 'options' => $uri['options'], - 'weight' => 20, - ); - // System menus could not be deleted. - $system_menus = menu_list_system_menus(); - if (isset($system_menus[$entity->id()])) { - unset($operations['delete']); - } - else { - $operations['delete']['title'] = t('delete menu'); - } - return $operations; - }*/ - - /** - * Overrides \Drupal\Core\Entity\EntityListController::render(); + * Overrides EntityListController::render(); */ public function render() { $build = parent::render(); $build['#empty'] = t('There are currently no styles. Add a new one.', array('!url' => url('admin/config/media/image-styles/add'))); - //$build['#attached']['css'][] = drupal_get_path('module', 'image') . '/image.admin.css'; return $build; }