User::getCreatedTime

public User::getCreatedTime() Returns the creation time of the user as a UNIX timestamp. Return value int Timestamp of the creation date. Overrides UserInterface::getCreatedTime File core/modules/user/src/Entity/User.php, line 237 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getCreatedTime() { return $this->get('created')->value; }

Database::RETURN_STATEMENT

Flag to indicate a query call should return the prepared statement. File core/lib/Drupal/Core/Database/Database.php, line 25 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code const RETURN_STATEMENT = 1;

PoItem::setPlural

PoItem::setPlural($plural) Set if the translation has plural values. Parameters bool $plural: File core/lib/Drupal/Component/Gettext/PoItem.php, line 138 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code function setPlural($plural) { $this->_plural = $plural; }

ContextualLinks::moduleHandler

protected static ContextualLinks::moduleHandler() Wraps the module handler. Return value \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/contextual/src/Element/ContextualLinks.php, line 111 Class ContextualLinks Provides a contextual_links element. Namespace Drupal\contextual\Element Code protected static function moduleHandler() { return \Drupal::moduleHandler(); }

Node::getRevisionAuthor

public Node::getRevisionAuthor() Gets the node revision author. Return value \Drupal\user\UserInterface The user entity for the revision author. Overrides NodeInterface::getRevisionAuthor Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::getRevisionUser() instead. File core/modules/node/src/Entity/Node.php, line 308 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function getRevisionAuth

forum_node_insert

forum_node_insert(EntityInterface $node) Implements hook_ENTITY_TYPE_insert() for node entities. File core/modules/forum/forum.module, line 213 Provides discussion forums. Code function forum_node_insert(EntityInterface $node) { if (\Drupal::service('forum_manager')->checkNodeType($node)) { /** @var \Drupal\forum\ForumIndexStorageInterface $forum_index_storage */ $forum_index_storage = \Drupal::service('forum.index_storage'); if (!empty($node->forum_tid)) { $forum_in

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

DrupalKernel::getContainerBuilder

protected DrupalKernel::getContainerBuilder() Gets a new ContainerBuilder instance used to build the service container. Return value ContainerBuilder File core/lib/Drupal/Core/DrupalKernel.php, line 1286 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function getContainerBuilder() { return new ContainerBuilder(new ParameterBag($this->getKernelParameters())); }

ViewFormBase::prepareEntity

protected ViewFormBase::prepareEntity() Prepares the entity object before the form is built first. Overrides EntityForm::prepareEntity File core/modules/views_ui/src/ViewFormBase.php, line 47 Class ViewFormBase Base form for Views forms. Namespace Drupal\views_ui Code protected function prepareEntity() { // Determine the displays available for editing. if ($tabs = $this->getDisplayTabs($this->entity)) { if (empty($this->displayID)) { // If a display isn't specifi

ExecutionContext::setConstraint

public ExecutionContext::setConstraint(Constraint $constraint) Sets the currently validated constraint. @internal Used by the validator engine. Should not be called by user code. Parameters Constraint $constraint The validated constraint: Overrides ExecutionContextInterface::setConstraint File core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 151 Class ExecutionContext Defines an execution context class. Namespace Drupal\Core\TypedData\Validation Code public functio