public static function Temporary::targets in Feeds 8.3
Returns the targets defined by this plugin.
Parameters
\Drupal\feeds\TargetDefinitionInterface[] $targets: An array of targets.
\Drupal\feeds\FeedTypeInterface $feed_type: The feed type object.
array $definition: The plugin implementation definition.
Overrides TargetInterface::targets
File
- src/
Feeds/ Target/ Temporary.php, line 23
Class
- Temporary
- Defines a target that does not set data.
Namespace
Drupal\feeds\Feeds\TargetCode
public static function targets(array &$targets, FeedTypeInterface $feed_type, array $definition) {
$targets['temporary_target'] = TargetDefinition::create()
->setPluginId($definition['id'])
->setLabel(t('Temporary target'))
->addProperty('temporary', t('Temporary'));
}