5 use Drupal\Core\Config\Entity\ConfigEntityInterface;
6 use Drupal\Core\Entity\RevisionableEntityBundleInterface;
9 * Provides an interface defining a node type entity.
11 interface NodeTypeInterface extends ConfigEntityInterface, RevisionableEntityBundleInterface {
14 * Determines whether the node type is locked.
16 * @return string|false
17 * The module name that locks the type or FALSE.
19 public function isLocked();
22 * Gets whether a new revision should be created by default.
25 * TRUE if a new revision should be created by default.
27 * @deprecated in Drupal 8.3.0 and will be removed before Drupal 9.0.0. Use
28 * Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
31 public function isNewRevision();
34 * Sets whether a new revision should be created by default.
36 * @param bool $new_revision
37 * TRUE if a new revision should be created by default.
39 public function setNewRevision($new_revision);
42 * Gets whether 'Submitted by' information should be shown.
45 * TRUE if the submitted by information should be shown.
47 public function displaySubmitted();
50 * Sets whether 'Submitted by' information should be shown.
52 * @param bool $display_submitted
53 * TRUE if the submitted by information should be shown.
55 public function setDisplaySubmitted($display_submitted);
58 * Gets the preview mode.
61 * DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.
63 public function getPreviewMode();
66 * Sets the preview mode.
68 * @param int $preview_mode
69 * DRUPAL_DISABLED, DRUPAL_OPTIONAL or DRUPAL_REQUIRED.
71 public function setPreviewMode($preview_mode);
74 * Gets the help information.
77 * The help information of this node type.
79 public function getHelp();
82 * Gets the description.
85 * The description of this node type.
87 public function getDescription();