You are here

public function ReferenceType::setPreviewMode in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Entity/ReferenceType.php \Drupal\bibcite_entity\Entity\ReferenceType::setPreviewMode()

Sets the preview mode.

Parameters

int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.

Overrides ReferenceTypeInterface::setPreviewMode

File

modules/bibcite_entity/src/Entity/ReferenceType.php, line 167

Class

ReferenceType
Defines the Reference type entity.

Namespace

Drupal\bibcite_entity\Entity

Code

public function setPreviewMode($preview_mode) {
  $this->preview_mode = $preview_mode;
}