node-add-list.html.twig

Default theme implementation to list node types available for adding content. This list is displayed on the Add content admin page. Available variables: types: A list of content types, each with the following properties: add_link: Link to create a piece of content of this type. description: Description of this type of content. See also template_preprocess_node_add_list() File core/modules/node/templates/node-add-list.html.twig Related topics Theme system overview Functions and templat

User::getLastAccessedTime

public User::getLastAccessedTime() The timestamp when the account last accessed the site. A value of 0 means the user has never accessed the site. Return value int Timestamp of the last access. Overrides AccountInterface::getLastAccessedTime File core/modules/user/src/Entity/User.php, line 244 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function getLastAccessedTime() { return $this->get('access')->value; }

Database::closeConnection

public static Database::closeConnection($target = NULL, $key = NULL) Closes a connection to the server specified by the given key and target. Parameters string $target: The database target name. Defaults to NULL meaning that all target connections will be closed. string $key: The database connection key. Defaults to NULL which means the active key. File core/lib/Drupal/Core/Database/Database.php, line 399 Class Database Primary front-controller for the database system. Namespace Drupal

UserMultipleCancelConfirm::$tempStoreFactory

The temp store factory. Type: \Drupal\user\PrivateTempStoreFactory File core/modules/user/src/Form/UserMultipleCancelConfirm.php, line 23 Class UserMultipleCancelConfirm Provides a confirmation form for cancelling multiple user accounts. Namespace Drupal\user\Form Code protected $tempStoreFactory;

Url::$external

Indicates whether this object contains an external URL. Type: bool File core/lib/Drupal/Core/Url.php, line 69 Class Url Defines an object that holds information about a URL. Namespace Drupal\Core Code protected $external = FALSE;

ArrayElement::getIterator

public ArrayElement::getIterator() File core/lib/Drupal/Core/Config/Schema/ArrayElement.php, line 115 Class ArrayElement Defines a generic configuration element that contains multiple properties. Namespace Drupal\Core\Config\Schema Code public function getIterator() { return new \ArrayIterator($this->getElements()); }

entity_get_form_display

entity_get_form_display($entity_type, $bundle, $form_mode) Returns the entity form display associated with a bundle and form mode. The function reads the entity form display object from the current configuration, or returns a ready-to-use empty one if no configuration entry exists yet for this bundle and form mode. This streamlines manipulation of entity form displays by always returning a consistent object that reflects the current state of the configuration. Example usage: Set the 'body' fiel

Select::$expressions

The expressions to SELECT as virtual fields. Type: array File core/lib/Drupal/Core/Database/Query/Select.php, line 30 Class Select Query builder for SELECT statements. Namespace Drupal\Core\Database\Query Code protected $expressions = array();

ResponsiveImageStyle::isEmptyImageStyleMapping

public static ResponsiveImageStyle::isEmptyImageStyleMapping(array $image_style_mapping) Checks if there is at least one image style mapping defined. Parameters array $image_style_mapping: The image style mapping. Return value bool Whether the image style mapping is empty. Overrides ResponsiveImageStyleInterface::isEmptyImageStyleMapping File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 216 Class ResponsiveImageStyle Defines the responsive image style entity.

PoDatabaseWriter::setHeader

public PoDatabaseWriter::setHeader(PoHeader $header) Implements Drupal\Component\Gettext\PoMetadataInterface::setHeader(). Sets the header and configure Drupal accordingly. Before being able to process the given header we need to know in what context this database write is done. For this the options must be set. A langcode is required to set the current header's PluralForm. Parameters \Drupal\Component\Gettext\PoHeader $header: Header metadata. Throws Exception Overrides PoMetadataInterface::