function NodeTypeInterface::setPreviewMode

Same name in other branches
  1. 9 core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setPreviewMode()
  2. 8.9.x core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setPreviewMode()
  3. 10 core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setPreviewMode()

Sets the preview mode.

Parameters

int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.

1 method overrides NodeTypeInterface::setPreviewMode()
NodeType::setPreviewMode in core/modules/node/src/Entity/NodeType.php
Sets the preview mode.

File

core/modules/node/src/NodeTypeInterface.php, line 59

Class

NodeTypeInterface
Provides an interface defining a node type entity.

Namespace

Drupal\node

Code

public function setPreviewMode($preview_mode);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.