public function TargetDefinition::addProperty in Feeds 8.3
Adds a supported property.
Parameters
string $property: The supported property.
string $label: (optional) The label of the property. Defaults to an empty string.
string $description: (optional) The description of the property. Defaults to an empty string.
Return value
$this
File
- src/
TargetDefinition.php, line 147
Class
- TargetDefinition
- A generic target definition.
Namespace
Drupal\feedsCode
public function addProperty($property, $label = '', $description = '') {
$this->properties[$property] = [
'label' => $label,
'description' => $description,
];
return $this;
}