public function SimpleSitemap::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/ SimpleSitemap.php, line 278
Class
- SimpleSitemap
- Defines the simple_sitemap entity.
Namespace
Drupal\simple_sitemap\EntityCode
public function set($property_name, $value) {
if ($property_name === 'type') {
$this->sitemapType = NULL;
}
return parent::set($property_name, $value);
}