public function ProcessorBase::postClear in Feeds 8.3
File
- src/
Feeds/ Processor/ ProcessorBase.php, line 48
Class
- ProcessorBase
- Defines a base processor plugin class.
Namespace
Drupal\feeds\Feeds\ProcessorCode
public function postClear(FeedInterface $feed, StateInterface $state) {
$tokens = [
'@item' => $this
->getItemLabel(),
'@items' => $this
->getItemLabelPlural(),
'%title' => $feed
->label(),
];
if ($state->deleted) {
$state
->setMessage($this
->formatPlural($state->deleted, 'Deleted @count @item from %title.', 'Deleted @count @items from %title.', $tokens));
}
else {
$state
->setMessage($this
->t('There are no @items to delete.', $tokens));
}
}