Loading core/lib/Drupal/Core/Annotation/QueueWorker.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ * Plugin Namespace: Plugin\QueueWorker * * For a working example, see * \Drupal\aggregator\Plugin\QueueWorker\AggregatorRefresh. * \Drupal\locale\Plugin\QueueWorker\LocaleTranslation. * * @see \Drupal\Core\Queue\QueueWorkerInterface * @see \Drupal\Core\Queue\QueueWorkerBase Loading core/modules/aggregator/aggregator.module +13 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ * Used to aggregate syndicated content (RSS, RDF, and Atom). */ use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Session\AccountInterface; use Drupal\Core\Url; use Drupal\aggregator\Entity\Feed; use Drupal\Core\Routing\RouteMatchInterface; Loading Loading @@ -205,3 +208,13 @@ function aggregator_preprocess_block(&$variables) { $variables['attributes']['role'] = 'complementary'; } } /** * Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'aggregator_feed'. */ function aggregator_jsonapi_aggregator_feed_filter_access(EntityTypeInterface $entity_type, AccountInterface $account) { // @see \Drupal\aggregator\FeedAccessControlHandler::checkAccess() return ([ JSONAPI_FILTER_AMONG_ALL => AccessResult::allowedIfHasPermission($account, 'access news feeds'), ]); } core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_opml.yml→core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_style_opml.yml +2 −2 Original line number Diff line number Diff line Loading @@ -3,8 +3,8 @@ status: true dependencies: module: - aggregator id: test_style_opml label: test_style_opml id: test_aggregator_style_opml label: test_aggregator_style_opml module: views description: '' tag: default Loading core/modules/jsonapi/tests/src/Functional/FeedTest.php→core/modules/aggregator/tests/src/Functional/Jsonapi/FeedTest.php +3 −2 Original line number Diff line number Diff line <?php namespace Drupal\Tests\jsonapi\Functional; namespace Drupal\Tests\aggregator\Functional\Jsonapi; use Drupal\aggregator\Entity\Feed; use Drupal\Core\Url; use Drupal\Tests\jsonapi\Functional\ResourceTestBase; use Drupal\Tests\jsonapi\Traits\CommonCollectionFilterAccessTestPatternsTrait; /** * JSON:API integration test for the "Feed" content entity type. * * @group jsonapi * @group aggregator */ class FeedTest extends ResourceTestBase { Loading core/modules/jsonapi/tests/src/Functional/ItemTest.php→core/modules/aggregator/tests/src/Functional/Jsonapi/ItemTest.php +3 −2 Original line number Diff line number Diff line <?php namespace Drupal\Tests\jsonapi\Functional; namespace Drupal\Tests\aggregator\Functional\Jsonapi; use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Entity\Item; use Drupal\Tests\jsonapi\Functional\ResourceTestBase; /** * JSON:API integration test for the "Item" content entity type. * * @group jsonapi * @group aggregator */ class ItemTest extends ResourceTestBase { Loading Loading
core/lib/Drupal/Core/Annotation/QueueWorker.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ * Plugin Namespace: Plugin\QueueWorker * * For a working example, see * \Drupal\aggregator\Plugin\QueueWorker\AggregatorRefresh. * \Drupal\locale\Plugin\QueueWorker\LocaleTranslation. * * @see \Drupal\Core\Queue\QueueWorkerInterface * @see \Drupal\Core\Queue\QueueWorkerBase Loading
core/modules/aggregator/aggregator.module +13 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,9 @@ * Used to aggregate syndicated content (RSS, RDF, and Atom). */ use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Session\AccountInterface; use Drupal\Core\Url; use Drupal\aggregator\Entity\Feed; use Drupal\Core\Routing\RouteMatchInterface; Loading Loading @@ -205,3 +208,13 @@ function aggregator_preprocess_block(&$variables) { $variables['attributes']['role'] = 'complementary'; } } /** * Implements hook_jsonapi_ENTITY_TYPE_filter_access() for 'aggregator_feed'. */ function aggregator_jsonapi_aggregator_feed_filter_access(EntityTypeInterface $entity_type, AccountInterface $account) { // @see \Drupal\aggregator\FeedAccessControlHandler::checkAccess() return ([ JSONAPI_FILTER_AMONG_ALL => AccessResult::allowedIfHasPermission($account, 'access news feeds'), ]); }
core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_opml.yml→core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_style_opml.yml +2 −2 Original line number Diff line number Diff line Loading @@ -3,8 +3,8 @@ status: true dependencies: module: - aggregator id: test_style_opml label: test_style_opml id: test_aggregator_style_opml label: test_aggregator_style_opml module: views description: '' tag: default Loading
core/modules/jsonapi/tests/src/Functional/FeedTest.php→core/modules/aggregator/tests/src/Functional/Jsonapi/FeedTest.php +3 −2 Original line number Diff line number Diff line <?php namespace Drupal\Tests\jsonapi\Functional; namespace Drupal\Tests\aggregator\Functional\Jsonapi; use Drupal\aggregator\Entity\Feed; use Drupal\Core\Url; use Drupal\Tests\jsonapi\Functional\ResourceTestBase; use Drupal\Tests\jsonapi\Traits\CommonCollectionFilterAccessTestPatternsTrait; /** * JSON:API integration test for the "Feed" content entity type. * * @group jsonapi * @group aggregator */ class FeedTest extends ResourceTestBase { Loading
core/modules/jsonapi/tests/src/Functional/ItemTest.php→core/modules/aggregator/tests/src/Functional/Jsonapi/ItemTest.php +3 −2 Original line number Diff line number Diff line <?php namespace Drupal\Tests\jsonapi\Functional; namespace Drupal\Tests\aggregator\Functional\Jsonapi; use Drupal\aggregator\Entity\Feed; use Drupal\aggregator\Entity\Item; use Drupal\Tests\jsonapi\Functional\ResourceTestBase; /** * JSON:API integration test for the "Item" content entity type. * * @group jsonapi * @group aggregator */ class ItemTest extends ResourceTestBase { Loading