PhpBackend::prepareItem

protected PhpBackend::prepareItem($cache, $allow_invalid) Prepares a cached item. Checks that items are either permanent or did not expire, and returns data as appropriate. Parameters object $cache: An item loaded from cache_get() or cache_get_multiple(). bool $allow_invalid: If FALSE, the method returns FALSE if the cache item is not valid. Return value mixed The item with data as appropriate or FALSE if there is no valid item to load. File core/lib/Drupal/Core/Cache/PhpBackend.php, line 122

FormBuilder::submitForm

public FormBuilder::submitForm($form_arg, FormStateInterface &$form_state) Retrieves, populates, and processes a form. This function allows you to supply values for form elements and submit a form for processing. Compare to self::getForm(), which also builds and processes a form, but does not allow you to supply values. There is no return value, but you can check to see if there are errors by calling $form_state->getErrors(). // register a new user $form_state = new FormState(); $values[

hook_node_grants

hook_node_grants(\Drupal\Core\Session\AccountInterface $account, $op) Inform the node access system what permissions the user has. This hook is for implementation by node access modules. In this hook, the module grants a user different "grant IDs" within one or more "realms". In hook_node_access_records(), the realms and grant IDs are associated with permission to view, edit, and delete individual nodes. The realms and grant IDs can be arbitrarily defined by your node access module; it is commo

SqlContentEntityStorage::saveToSharedTables

protected SqlContentEntityStorage::saveToSharedTables(ContentEntityInterface $entity, $table_name = NULL, $new_revision = NULL) Saves fields that use the shared tables. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. string $table_name: (optional) The table name to save to. Defaults to the data table. bool $new_revision: (optional) Whether we are dealing with a new revision. By default fetches the information from the entity object. File core/lib/Drupal/Core/E

FormBuilder::doSubmitForm

public FormBuilder::doSubmitForm(&$form, FormStateInterface &$form_state) Handles the submitted form, executing callbacks and processing responses. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value null|\Symfony\Component\HttpFoundation\Response If a response was set by a submit handler, or if the form needs to redirect, a Response object will be returned. Ove

Database

Primary front-controller for the database system. This class is uninstantiatable and un-extendable. It acts to encapsulate all control and shepherding of database connections into a single location without the use of globals. Hierarchy class \Drupal\Core\Database\Database File core/lib/Drupal/Core/Database/Database.php, line 12 Namespace Drupal\Core\Database Members Name Modifiers Type Description Database::$activeKey static protected property The key of the currently ac

EntityLastInstalledSchemaRepository::getLastInstalledFieldStorageDefinitions

public EntityLastInstalledSchemaRepository::getLastInstalledFieldStorageDefinitions($entity_type_id) Gets the entity type's most recently installed field storage definitions. During the application lifetime, field storage definitions can change. For example, updated code can be deployed. The getFieldStorageDefinitions() method will always return the definitions as determined by the current codebase. This method, however, returns what the definitions were when the last time that one of the \Drup

ConfigHandler::getFormId

public ConfigHandler::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/views_ui/src/Form/Ajax/ConfigHandler.php, line 43 Class ConfigHandler Provides a form for configuring an item in the Views UI. Namespace Drupal\views_ui\Form\Ajax Code public function getFormId() { return 'views_ui_config_item_form'; }

MessageInterface::getPersonalRecipient

public MessageInterface::getPersonalRecipient() Returns the user this message is being sent to. Return value \Drupal\user\UserInterface The user entity of the recipient, NULL if this is not a personal message. File core/modules/contact/src/MessageInterface.php, line 114 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getPersonalRecipient();

utility.inc

Miscellaneous functions. File core/includes/utility.inc Functions Name Description drupal_rebuild Rebuilds all caches even when Drupal itself does not work.