public function SimpleSitemap::status in Simple XML sitemap 4.x
Returns whether the configuration entity is enabled.
Status implementations for configuration entities should follow these general rules:
- Status does not affect the loading of entities. I.e. Disabling configuration entities should only have UI/access implications.
- It should only take effect when a 'status' key is explicitly declared in the entity_keys info of a configuration entity's annotation data.
- Each entity implementation (entity/controller) is responsible for checking and managing the status.
Return value
bool Whether the entity is enabled or not.
Overrides ConfigEntityBase::status
File
- src/
Entity/ SimpleSitemap.php, line 191
Class
- SimpleSitemap
- Defines the simple_sitemap entity.
Namespace
Drupal\simple_sitemap\EntityCode
public function status() : bool {
return parent::status() && $this
->contentStatus();
}