@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace Drupal\crop\Entity; |
9 | 9 | |
10 | 10 | use Drupal\Core\Config\Entity\ConfigEntityBundleBase; |
11 | -use Drupal\Core\Entity\EntityConstraintViolationList; |
|
12 | 11 | use Drupal\crop\CropTypeInterface; |
13 | 12 | use Symfony\Component\Validator\ConstraintViolationList; |
14 | 13 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | */ |
108 | 108 | public static function getCropTypeNames() { |
109 | 109 | return array_map( |
110 | - function ($bundle_info) { return $bundle_info['label'];}, |
|
110 | + function($bundle_info) { return $bundle_info['label']; }, |
|
111 | 111 | \Drupal::entityManager()->getBundleInfo('crop') |
112 | 112 | ); |
113 | 113 | } |
@@ -10,7 +10,6 @@ |
||
10 | 10 | use Drupal\Core\Config\Entity\ConfigEntityListBuilder; |
11 | 11 | use Drupal\Core\Entity\Query\QueryFactory; |
12 | 12 | use Drupal\Core\Entity\EntityTypeInterface; |
13 | -use Drupal\Core\StringTranslation\TranslatableMarkup; |
|
14 | 13 | use Symfony\Component\DependencyInjection\ContainerInterface; |
15 | 14 | use Drupal\Core\Entity\EntityStorageInterface; |
16 | 15 | use Drupal\Core\Routing\UrlGeneratorInterface; |