history_read

history_read($nid) Retrieves the timestamp for the current user's last view of a specified node. Parameters int $nid: A node ID. Return value int If a node has been previously viewed by the user, the timestamp in seconds of when the last view occurred; otherwise, zero. File core/modules/history/history.module, line 46 Records which users have read which content. Code function history_read($nid) { $history = history_read_multiple(array($nid)); return $history[$nid]; }

install.core.inc

API functions for installing Drupal. File core/includes/install.core.inc Functions Name Description install_base_system Installation task; install the base functionality Drupal needs to bootstrap. install_begin_request Begins an installation request, modifying the installation state as needed. install_bootstrap_full Performs a full bootstrap of Drupal during installation. install_check_localization_server Checks if the localization server can be contacted. install_check_

Schema::indexExists

public Schema::indexExists($table, $name) Checks if an index exists in the given table. Parameters $table: The name of the table in drupal (no prefixing). $name: The name of the index in drupal (no prefixing). Return value TRUE if the given index exists, otherwise FALSE. Overrides Schema::indexExists File core/lib/Drupal/Core/Database/Driver/mysql/Schema.php, line 450 Class Schema MySQL implementation of \Drupal\Core\Database\Schema. Namespace Drupal\Core\Database\Driver\mysql Code p

FieldStorageConfigEditForm

Provides a form for the "field storage" edit page. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\field_ui\Form\FieldStorageConfigEditForm File core/modules/field_ui/src/Form/FieldStorageConfigEditForm.php, line 16 Nam

VocabularyStorage

Defines a storage handler class for taxonomy vocabularies. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityStorage implements ConfigEntityStorageInterface, ImportableEntityStorageInterfaceclass \Drupal\taxonomy\VocabularyStorage implements VocabularyStorageInterface File core/modules

DeleteForm

Builds the form to delete a forum term. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\forum\Form\DeleteForm File core/modules/forum/src/Form/DeleteForm.php, line 13 Namespace Drupal\forum\Form Members Name M

FieldAPIHandlerTrait

A trait containing helper methods for field definitions. Hierarchy trait \Drupal\views\FieldAPIHandlerTrait File core/modules/views/src/FieldAPIHandlerTrait.php, line 10 Namespace Drupal\views Members Name Modifiers Type Description FieldAPIHandlerTrait::$fieldDefinition protected property The field definition. FieldAPIHandlerTrait::$fieldStorageDefinition protected property The field storage definition. FieldAPIHandlerTrait::getEntityManager protected func

field_help

field_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). Related topics Field API Attaches custom data fields to Drupal entities. File core/modules/field/field.module, line 67 Attach custom data fields to Drupal entities. Code function field_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.field': $field_ui_url = \Drupal::moduleHandler()->moduleExists('field_ui') ? \Drupal::url('help.page', array('name' =>

FieldStorageConfig::getSetting

public FieldStorageConfig::getSetting($setting_name) Returns the value of a given storage setting. Parameters string $setting_name: The setting name. Return value mixed The setting value. Overrides FieldStorageDefinitionInterface::getSetting File core/modules/field/src/Entity/FieldStorageConfig.php, line 550 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function getSetting($setting_name) { // @todo See getSettings

FinishResponseSubscriber::onRespond

public FinishResponseSubscriber::onRespond(FilterResponseEvent $event) Sets extra headers on successful responses. Parameters \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event: The event to process. File core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php, line 97 Class FinishResponseSubscriber Response subscriber to handle finished responses. Namespace Drupal\Core\EventSubscriber Code public function onRespond(FilterResponseEvent $event) { if (!$event->