Drupal 8  8.0.2
DefaultProcessor Class Reference
Inheritance diagram for DefaultProcessor:

Public Member Functions

 __construct (array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config, QueryInterface $item_query, ItemStorageInterface $item_storage, DateFormatterInterface $date_formatter)
 
 buildConfigurationForm (array $form, FormStateInterface $form_state)
 
 submitConfigurationForm (array &$form, FormStateInterface $form_state)
 
 process (FeedInterface $feed)
 
 delete (FeedInterface $feed)
 
 postProcess (FeedInterface $feed)
 
 getConfiguration ()
 
 setConfiguration (array $configuration)
 
- Public Member Functions inherited from AggregatorPluginSettingsBase
 defaultConfiguration ()
 
 validateConfigurationForm (array &$form, FormStateInterface $form_state)
 
 calculateDependencies ()
 
- Public Member Functions inherited from PluginFormInterface
 buildConfigurationForm (array $form, FormStateInterface $form_state)
 
 validateConfigurationForm (array &$form, FormStateInterface $form_state)
 
 submitConfigurationForm (array &$form, FormStateInterface $form_state)
 

Static Public Member Functions

static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 

Protected Member Functions

 getEditableConfigNames ()
 

Protected Attributes

 $configFactory
 
 $itemQuery
 
 $itemStorage
 
 $dateFormatter
 

Detailed Description

Defines a default processor implementation.

Creates lightweight records from feed items.

( id = "aggregator", title = ("Default processor"), description = ("Creates lightweight records from feed items.") )

Constructor & Destructor Documentation

__construct ( array  $configuration,
  $plugin_id,
  $plugin_definition,
ConfigFactoryInterface  $config,
QueryInterface  $item_query,
ItemStorageInterface  $item_storage,
DateFormatterInterface  $date_formatter 
)

Constructs a DefaultProcessor object.

Parameters
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin_id for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
\Drupal\Core\Config\ConfigFactoryInterface$configThe configuration factory object.
\Drupal\Core\Entity\Query\QueryInterface$item_queryThe entity query object for feed items.
\Drupal\aggregator\ItemStorageInterface$item_storageThe entity storage for feed items.
\Drupal\Core\Datetime\DateFormatterInterface$date_formatterThe date formatter service.

References Drupal\configFactory(), and DefaultProcessor\getConfiguration().

Here is the call graph for this function:

Member Function Documentation

buildConfigurationForm ( array  $form,
FormStateInterface  $form_state 
)

{}

References Drupal\config(), t(), and Drupal\url().

Here is the call graph for this function:

static create ( ContainerInterface  $container,
array  $configuration,
  $plugin_id,
  $plugin_definition 
)
static

{Creates an instance of the plugin.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container to pull out services used in the plugin.
array$configurationA configuration array containing information about the plugin instance.
string$plugin_idThe plugin ID for the plugin instance.
mixed$plugin_definitionThe plugin implementation definition.
Returns
static Returns an instance of this plugin.
}

Implements ContainerFactoryPluginInterface.

delete ( FeedInterface  $feed)

{Deletes stored feed data.Called by aggregator if either a feed is deleted or a user clicks on "delete items".

Parameters
\Drupal\aggregator\FeedInterface$feedThe $feed object whose items are being deleted.
}

Implements ProcessorInterface.

References t().

Here is the call graph for this function:

getConfiguration ( )

{Gets this plugin's configuration.

Returns
array An array of this plugin's configuration.
}

Implements ConfigurablePluginInterface.

References Drupal\configFactory().

Referenced by DefaultProcessor\__construct().

Here is the call graph for this function:

Here is the caller graph for this function:

getEditableConfigNames ( )
protected

{}

postProcess ( FeedInterface  $feed)

Implements ::postProcess().

Expires items from a feed depending on expiration settings.

Implements ProcessorInterface.

References EntityInterface\id().

Here is the call graph for this function:

process ( FeedInterface  $feed)

{Processes feed data.

Parameters
\Drupal\aggregator\FeedInterface$feedA feed object representing the resource to be processed. $feed->items contains an array of feed items downloaded and parsed at the parsing stage. See ::parse() for the basic format of a single item in the $feed->items array. For the exact format refer to the particular parser in use.
}

Implements ProcessorInterface.

References EntityInterface\id(), TranslatableInterface\language(), EntityInterface\link(), Unicode\truncate(), and EntityInterface\url().

Here is the call graph for this function:

setConfiguration ( array  $configuration)

{Sets the configuration for this plugin instance.

Parameters
array$configurationAn associative array containing the plugin's configuration.
}

Implements ConfigurablePluginInterface.

References Drupal\config().

Referenced by DefaultProcessor\submitConfigurationForm().

Here is the call graph for this function:

Here is the caller graph for this function:

submitConfigurationForm ( array &  $form,
FormStateInterface  $form_state 
)

{}

References DefaultProcessor\setConfiguration().

Here is the call graph for this function:


The documentation for this class was generated from the following file: