public function ConfigEntityInterface::status

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 entitys annotation data.
  • Each entity implementation (entity/controller) is responsible for checking and managing the status.

Return value

bool

2 methods override ConfigEntityInterface::status()
ConfigEntityBase::status in drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::status().
ViewUI::status in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Config\Entity\ConfigEntityInterface::status().

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 76
Definition of Drupal\Core\Config\Entity\ConfigEntityInterface.

Class

ConfigEntityInterface
Defines the interface common for all configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function status();