You are here

public function ConfigEntityRevisionsType::getPreviewMode in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::getPreviewMode()
  2. 1.x src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::getPreviewMode()

Gets the preview mode.

Return value

int DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.

Overrides ConfigEntityRevisionsTypeInterface::getPreviewMode

File

src/Entity/ConfigEntityRevisionsType.php, line 135

Class

ConfigEntityRevisionsType
Defines the Config Entity Revisions configuration entity.

Namespace

Drupal\config_entity_revisions\Entity

Code

public function getPreviewMode() {
  return $this->preview_mode;
}