public function SimpleSitemapType::set in Simple XML sitemap 4.x
Sets the value of a property.
Parameters
string $property_name: The name of the property that should be set.
mixed $value: The value the property should be set to.
Return value
$this
Overrides ConfigEntityBase::set
File
- src/
Entity/ SimpleSitemapType.php, line 97
Class
- SimpleSitemapType
- Defines the simple_sitemap entity.
Namespace
Drupal\simple_sitemap\EntityCode
public function set($property_name, $value) {
if ($property_name === 'sitemap_generator') {
$this->sitemapGenerator = NULL;
}
elseif ($property_name === 'url_generators') {
$this->urlGenerators = NULL;
}
return parent::set($property_name, $value);
}