NodeTypeDeleteConfirm

Provides a form for content type deletion. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFormTraitcl

NodeTypeAccessControlHandler::checkAccess

protected NodeTypeAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user fo

NodeTypeAccessControlHandler

Defines the access control handler for the node type entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\node\NodeTypeAccessControlHandler See also \Drupal\node\Entity\NodeType File core/modules/node/src/NodeTypeAccessControlHandler.php, line 15 Namespace Drupal\node Members Name Modifiers Type

NodeType::setPreviewMode

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; }

NodeType::setNewRevision

public NodeType::setNewRevision($new_revision) Sets whether a new revision should be created by default. Parameters bool $new_revision_: TRUE if a new revision should be created by default. Overrides NodeTypeInterface::setNewRevision File core/modules/node/src/Entity/NodeType.php, line 127 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function setNewRevision($new_revision) { $this->new_revision = $new_revision; }

NodeType::setDisplaySubmitted

public NodeType::setDisplaySubmitted($display_submitted) Sets whether 'Submitted by' information should be shown. Parameters bool $display_submitted: TRUE if the submitted by information should be shown. Overrides NodeTypeInterface::setDisplaySubmitted File core/modules/node/src/Entity/NodeType.php, line 141 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function setDisplaySubmitted($display_submitted) { $this->display_submitte

NodeType::postSave

public NodeType::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool $

NodeType::postDelete

public static NodeType::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides ConfigEntityBundleBase::postDelete File core/modules/node/src/Entity/NodeType.php, line 201 Class NodeTy

NodeType::isNewRevision

public NodeType::isNewRevision() Gets whether a new revision should be created by default. Return value bool TRUE if a new revision should be created by default. Overrides NodeTypeInterface::isNewRevision File core/modules/node/src/Entity/NodeType.php, line 120 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function isNewRevision() { return $this->new_revision; }

NodeType::isLocked

public NodeType::isLocked() Determines whether the node type is locked. Return value string|false The module name that locks the type or FALSE. Overrides NodeTypeInterface::isLocked File core/modules/node/src/Entity/NodeType.php, line 112 Class NodeType Defines the Node type configuration entity. Namespace Drupal\node\Entity Code public function isLocked() { $locked = \Drupal::state()->get('node.type.locked'); return isset($locked[$this->id()]) ? $locked[$this->id()] : FA