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