NodeDeleteForm::logDeletionMessage

protected NodeDeleteForm::logDeletionMessage() Overrides ContentEntityDeleteForm::logDeletionMessage File core/modules/node/src/Form/NodeDeleteForm.php, line 39 Class NodeDeleteForm Provides a form for deleting a node. Namespace Drupal\node\Form Code protected function logDeletionMessage() { /** @var \Drupal\node\NodeInterface $entity */ $entity = $this->getEntity(); $this->logger('content')->notice('@type: deleted %title.', ['@type' => $entity->getType(), '%title'

NodeDeleteForm::getDeletionMessage

protected NodeDeleteForm::getDeletionMessage() Overrides ContentEntityDeleteForm::getDeletionMessage File core/modules/node/src/Form/NodeDeleteForm.php, line 15 Class NodeDeleteForm Provides a form for deleting a node. Namespace Drupal\node\Form Code protected function getDeletionMessage() { /** @var \Drupal\node\NodeInterface $entity */ $entity = $this->getEntity(); $node_type_storage = $this->entityManager->getStorage('node_type'); $node_type = $node_type_storage-&g

NodeDeleteForm

Provides a form for deleting a node. 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\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase implements ConfirmFo

NodeController::__construct

public NodeController::__construct(DateFormatterInterface $date_formatter, RendererInterface $renderer) Constructs a NodeController object. Parameters \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service. \Drupal\Core\Render\RendererInterface $renderer: The renderer service. File core/modules/node/src/Controller/NodeController.php, line 43 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function _

NodeController::revisionShow

public NodeController::revisionShow($node_revision) Displays a node revision. Parameters int $node_revision: The node revision ID. Return value array An array suitable for drupal_render(). File core/modules/node/src/Controller/NodeController.php, line 127 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function revisionShow($node_revision) { $node = $this->entityManager()->getStorage('node')->loadRevision($node_revision)

NodeController::revisionPageTitle

public NodeController::revisionPageTitle($node_revision) Page title callback for a node revision. Parameters int $node_revision: The node revision ID. Return value string The page title. File core/modules/node/src/Controller/NodeController.php, line 145 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function revisionPageTitle($node_revision) { $node = $this->entityManager()->getStorage('node')->loadRevision($node_revisi

NodeController::revisionOverview

public NodeController::revisionOverview(NodeInterface $node) Generates an overview table of older revisions of a node. Parameters \Drupal\node\NodeInterface $node: A node object. Return value array An array as expected by drupal_render(). File core/modules/node/src/Controller/NodeController.php, line 159 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function revisionOverview(NodeInterface $node) { $account = $this->currentUs

NodeController::getRevisionIds

protected NodeController::getRevisionIds(NodeInterface $node, NodeStorageInterface $node_storage) Gets a list of node revision IDs for a specific node. Parameters \Drupal\node\NodeInterface $node: The node entity. \Drupal\node\NodeStorageInterface $node_storage: The node storage handler. Return value int[] Node revision IDs (in descending order). File core/modules/node/src/Controller/NodeController.php, line 296 Class NodeController Returns responses for Node routes. Namespace Drupal\

NodeController::create

public static NodeController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

NodeController::addPageTitle

public NodeController::addPageTitle(NodeTypeInterface $node_type) The _title_callback for the node.add route. Parameters \Drupal\node\NodeTypeInterface $node_type: The current node. Return value string The page title. File core/modules/node/src/Controller/NodeController.php, line 281 Class NodeController Returns responses for Node routes. Namespace Drupal\node\Controller Code public function addPageTitle(NodeTypeInterface $node_type) { return $this->t('Create @name', array('@nam