public function ConfigEntityRevisionsType::setPreviewMode in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::setPreviewMode()
- 1.x src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::setPreviewMode()
Sets the preview mode.
Parameters
int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.
Overrides ConfigEntityRevisionsTypeInterface::setPreviewMode
File
- src/
Entity/ ConfigEntityRevisionsType.php, line 142
Class
- ConfigEntityRevisionsType
- Defines the Config Entity Revisions configuration entity.
Namespace
Drupal\config_entity_revisions\EntityCode
public function setPreviewMode($preview_mode) {
$this->preview_mode = $preview_mode;
}