Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
b7a6096b
Commit
b7a6096b
authored
Feb 15, 2014
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2195779
by ParisLiakos: Remove aggregator_load_feed_items().
parent
fcb52a6a
No related branches found
No related tags found
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/aggregator/aggregator.pages.inc
+0
-39
0 additions, 39 deletions
core/modules/aggregator/aggregator.pages.inc
with
0 additions
and
39 deletions
core/modules/aggregator/aggregator.pages.inc
deleted
100644 → 0
+
0
−
39
View file @
fcb52a6a
<?php
/**
* @file
* User page callbacks for the Aggregator module.
*/
/**
* Loads and optionally filters feed items.
*
* @param string $type
* The type of filter for the items. Possible values are:
* - sum: No filtering.
* - source: Filter the feed items, limiting the result to items from a
* single source.
* @param mixed $data
* Feed data used for filtering. The type and value of $data depends on $type:
* - source: $data is an object with $data->fid identifying the feed used to
* as filter.
* The $data parameter is not used when $type is 'sum'.
* @param int $limit
* (optional) The number of records to return. Defaults to 20.
*
* @deprecated Use \Drupal\aggregator\ItemStorageController::loadAll() for
* loading all feed items, \Drupal\aggregator\ItemStorageController::loadByFeed()
*
* @return \Drupal\aggregator\ItemInterface[]
* An array of the feed items.
*/
function
aggregator_load_feed_items
(
$type
,
$data
=
NULL
,
$limit
=
20
)
{
$storage_controller
=
\Drupal
::
entityManager
()
->
getStorageController
(
'aggregator_item'
);
switch
(
$type
)
{
case
'sum'
:
return
$storage_controller
->
loadAll
(
$limit
);
case
'source'
:
return
$storage_controller
->
loadByFeed
(
$data
->
id
(),
$limit
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment