@@ -8,8 +8,6 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | use Drupal\Core\Render\Element; |
| 11 | -use Drupal\Core\Link; |
|
| 12 | -use Drupal\Core\Url; |
|
| 13 | 11 | |
| 14 | 12 | /** |
| 15 | 13 | * Prepares variables for Event template templates. |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\mongodb_watchdog\Entity; |
| 4 | 4 | |
| 5 | -use Drupal\Core\Entity\EntityStorageInterface; |
|
| 6 | -use Drupal\Core\Field\BaseFieldDefinition; |
|
| 7 | 5 | use Drupal\Core\Entity\ContentEntityBase; |
| 8 | 6 | use Drupal\Core\Entity\EntityChangedTrait; |
| 7 | +use Drupal\Core\Entity\EntityStorageInterface; |
|
| 9 | 8 | use Drupal\Core\Entity\EntityTypeInterface; |
| 9 | +use Drupal\Core\Field\BaseFieldDefinition; |
|
| 10 | 10 | use Drupal\user\UserInterface; |
| 11 | 11 | |
| 12 | 12 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * base_table = "mongodb_watchdog_event_template", |
| 40 | 40 | * data_table = "mongodb_watchdog_event_template_field_data", |
| 41 | 41 | * translatable = TRUE, |
| 42 | - * admin_permission = "administer event template entities", |
|
| 42 | + * admin_permission = "administer event template entities", |
|
| 43 | 43 | * entity_keys = { |
| 44 | 44 | * "id" = "id", |
| 45 | 45 | * "label" = "name", |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Drupal\mongodb_watchdog; |
| 4 | 4 | |
| 5 | +use Drupal\Core\Access\AccessResult; |
|
| 5 | 6 | use Drupal\Core\Entity\EntityAccessControlHandler; |
| 6 | 7 | use Drupal\Core\Entity\EntityInterface; |
| 7 | 8 | use Drupal\Core\Session\AccountInterface; |
| 8 | -use Drupal\Core\Access\AccessResult; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Access controller for the Event template entity. |