Node::getCreatedTime

public Node::getCreatedTime() Gets the node creation timestamp. Return value int Creation timestamp of the node. Overrides NodeInterface::getCreatedTime File core/modules/node/src/Entity/Node.php, line 203 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function getCreatedTime() { return $this->get('created')->value; }

Node::baseFieldDefinitions

public static Node::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that sho

Node::access

public Node::access($operation = 'view', AccountInterface $account = NULL, $return_as_object = FALSE) Checks data value access. Parameters string $operation: The operation to be performed. \Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL. bool $return_as_object: (optional) Defaults to FALSE. Return value bool|\Drupal\Core\Access\AccessResultInterface The access result. Returns a boolea

Node::$in_preview

Whether the node is being previewed or not. The variable is set to public as it will give a considerable performance improvement. See https://www.drupal.org/node/2498919. TRUE if the node is being previewed and NULL if it is not. Type: true|null File core/modules/node/src/Entity/Node.php, line 86 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public $in_preview = NULL;

node.views_execution.inc

Provide views runtime hooks for node.module. File core/modules/node/node.views_execution.inc Functions Name Description node_views_analyze Implements hook_views_analyze(). node_views_query_substitutions Implements hook_views_query_substitutions().

node.tokens.inc

Builds placeholder replacement tokens for node-related data. File core/modules/node/node.tokens.inc Functions Name Description node_tokens Implements hook_tokens(). node_token_info Implements hook_token_info().

node.module

The core module that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern. File core/modules/node/node.module Functions Name Description node_access_grants Fetches an array of permission IDs granted to the given user ID. node_access_needs_rebuild Toggles or reads the value of a flag for rebuilding the node access grants. node_access_rebuild Rebuilds the node access database. node_access_view_all_no

node.html.twig

Default theme implementation to display a node. Available variables: node: The node entity with limited access to object properties and methods. Only method names starting with "get", "has", or "is" and a few common methods such as "id", "label", and "bundle" are available. For example: node.getCreatedTime() will return the node creation timestamp. node.hasField('field_example') returns TRUE if the node bundle includes field_example. (This does not indicate the presence of a value in this fiel

node.admin.inc

Content administration and module settings user interface. File core/modules/node/node.admin.inc Functions Name Description node_mass_update Updates all nodes in the passed-in array with the passed-in field values. _node_mass_update_batch_finished Implements callback_batch_finished(). _node_mass_update_batch_process Implements callback_batch_operation(). _node_mass_update_helper Updates individual nodes when fewer than 10 are queued.

node-edit-form.html.twig

Default theme implementation for a node edit form. Two column template for the node add/edit form. This template will be used when a node edit form specifies 'node_edit_form' as its #theme callback. Otherwise, by default, node add/edit forms will be themed by form.html.twig. Available variables: form: The node add/edit form. See also seven_form_node_form_alter() File core/modules/node/templates/node-edit-form.html.twig Related topics Theme system overview Functions and templates for the