Skip to content

Commit

Permalink
Slap together minimal views integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Apr 15, 2024
1 parent 3c3f984 commit 5b8e91e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/EmbargoIpRangeViewsData.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Drupal\embargo;

use Drupal\views\EntityViewsData;

/**
* Embargo IP range entity views data generation.
*/
class EmbargoIpRangeViewsData extends EntityViewsData {

}
12 changes: 12 additions & 0 deletions src/EmbargoViewsData.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Drupal\embargo;

use Drupal\views\EntityViewsData;

/**
* Embargo entity views data generation.
*/
class EmbargoViewsData extends EntityViewsData {

}
1 change: 1 addition & 0 deletions src/Entity/Embargo.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* handlers = {
* "storage" = "Drupal\embargo\EmbargoStorage",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "views_data" = "Drupal\embargo\EmbargoViewsData",
* "list_builder" = "Drupal\embargo\EmbargoListBuilder",
* "form" = {
* "add" = "Drupal\embargo\Form\EmbargoForm",
Expand Down
1 change: 1 addition & 0 deletions src/Entity/IpRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* handlers = {
* "storage" = "Drupal\embargo\IpRangeStorage",
* "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",
* "views_data" = "Drupal\embargo\EmbargoIpRangeViewsData",
* "list_builder" = "Drupal\embargo\EmbargoListBuilder",
* "form" = {
* "add" = "Drupal\embargo\Form\IpRangeForm",
Expand Down

0 comments on commit 5b8e91e

Please sign in to comment.