public NodeType::setPreviewMode($preview_mode)
Sets the preview mode.
Parameters
int $preview_mode: DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.
Overrides NodeTypeInterface::setPreviewMode
File
- core/modules/node/src/Entity/NodeType.php, line 155
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\Entity
Code
public function setPreviewMode($preview_mode) { $this->preview_mode = $preview_mode; }
Please login to continue.