function NodeTypeInterface::getPreviewMode

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

Gets the preview mode.

Return value

int DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.

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

File

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

Class

NodeTypeInterface
Provides an interface defining a node type entity.

Namespace

Drupal\node

Code

public function getPreviewMode();

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