MenuTreeStorage::collectRoutesAndDefinitions

protected MenuTreeStorage::collectRoutesAndDefinitions(array $tree, array &$definitions) Traverses the menu tree and collects all the route names and definitions. Parameters array $tree: The menu tree you wish to operate on. array $definitions: An array to accumulate definitions by reference. Return value array Array of route names, with all values being unique. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 973 Class MenuTreeStorage Provides a menu tree storage using the d

AccountInterface::isAuthenticated

public AccountInterface::isAuthenticated() Returns TRUE if the account is authenticated. Return value bool TRUE if the account is authenticated. File core/lib/Drupal/Core/Session/AccountInterface.php, line 61 Class AccountInterface Defines an account interface which represents the current user. Namespace Drupal\Core\Session Code public function isAuthenticated();

ContentEntityStorageBase::doSaveFieldItems

abstract protected ContentEntityStorageBase::doSaveFieldItems(ContentEntityInterface $entity, array $names = []) Writes entity field values to the storage. This method is responsible for allocating entity and revision identifiers and updating the entity object with their values. Parameters \Drupal\Core\Entity\ContentEntityInterface $entity: The entity object. string[] $names: (optional) The name of the fields to be written to the storage. If an empty value is passed all field values are saved.

DatabaseBackend::ensureTableExists

protected DatabaseBackend::ensureTableExists() Check if the flood table exists and create it if not. File core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 150 Class DatabaseBackend Defines the database flood backend. This is the default Drupal backend. Namespace Drupal\Core\Flood Code protected function ensureTableExists() { try { $database_schema = $this->connection->schema(); if (!$database_schema->tableExists(static::TABLE_NAME)) { $schema_definition = $

FormBuilder::getForm

public FormBuilder::getForm($form_arg) Gets a renderable form array. This function should be used instead of self::buildForm() when $form_state is not needed (i.e., when initially rendering the form) and is often used as a menu callback. Parameters \Drupal\Core\Form\FormInterface|string $form_arg: The value must be one of the following: The name of a class that implements \Drupal\Core\Form\FormInterface. An instance of a class that implements \Drupal\Core\Form\FormInterface. ...: Any additio

EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges

public EntityStorageSchemaInterface::requiresEntityStorageSchemaChanges(EntityTypeInterface $entity_type, EntityTypeInterface $original) Checks if the changes to the entity type requires storage schema changes. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The updated entity type definition. \Drupal\Core\Entity\EntityTypeInterface $original: The original entity type definition. Return value bool TRUE if storage schema changes are required, FALSE otherwise. File core/lib/Dru

AccountProxy::setInitialAccountId

public AccountProxy::setInitialAccountId($account_id) Sets the id of the initial account. Never use this method, its sole purpose is to work around weird effects during mid-request container rebuilds. Parameters int $account_id: The id of the initial account. Overrides AccountProxyInterface::setInitialAccountId File core/lib/Drupal/Core/Session/AccountProxy.php, line 158 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function

Item::buildUri

public static Item::buildUri(ItemInterface $item) Entity URI callback. File core/modules/aggregator/src/Entity/Item.php, line 239 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public static function buildUri(ItemInterface $item) { return Url::fromUri($item->getLink()); }

ResourceResponse::__construct

public ResourceResponse::__construct($data = NULL, $status = 200, $headers = array()) Constructor for ResourceResponse objects. Parameters mixed $data: Response data that should be serialized. int $status: The response status code. array $headers: An array of response headers. Overrides Response::__construct File core/modules/rest/src/ResourceResponse.php, line 34 Class ResourceResponse Contains data for serialization before sending the response. Namespace Drupal\rest Code public func

user_user_view_alter

user_user_view_alter(array &$build, UserInterface $account, EntityViewDisplayInterface $display) Implements hook_ENTITY_TYPE_view_alter() for user entities. This function adds a default alt tag to the user_picture field to maintain accessibility. File core/modules/user/user.module, line 387 Enables the user registration and login system. Code function user_user_view_alter(array &$build, UserInterface $account, EntityViewDisplayInterface $display) { if (user_picture_enabled() &&a