SelectExtender::getGroupBy

public &SelectExtender::getGroupBy() Returns a reference to the group-by array for this query. Because this method returns by reference, alter hooks may edit the group-by array directly to make their changes. If just adding additional grouping fields, however, the use of groupBy() is preferred. Note that this method must be called by reference as well: $fields =& $query->getGroupBy(); Return value A reference to the group-by array structure. Overrides SelectInterface::getGroupBy Fi

PrivateTempStoreFactory::get

PrivateTempStoreFactory::get($collection) Creates a PrivateTempStore. Parameters string $collection: The collection name to use for this key/value store. This is typically a shared namespace or module name, e.g. 'views', 'entity', etc. Return value \Drupal\user\PrivateTempStore An instance of the key/value store. File core/modules/user/src/PrivateTempStoreFactory.php, line 82 Class PrivateTempStoreFactory Creates a PrivateTempStore object for a given collection. Namespace Drupal\user

hook_views_post_render

hook_views_post_render(ViewExecutable $view, &$output, CachePluginBase $cache) Post-process any rendered data. This can be valuable to be able to cache a view and still have some level of dynamic output. In an ideal world, the actual output will include HTML comment-based tokens, and then the post process can replace those tokens. This hook can be used by themes. Example usage. If it is known that the view is a node view and that the primary field will be a nid, you can do something like th

LanguageListBuilder::submitForm

public LanguageListBuilder::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides DraggableListBuilder::submitForm File core/modules/language/src/LanguageListBuilder.php, line 143 Class LanguageListBuilder Defines a class to build a listing of language entities. Namespace Drupal\lang

TermStorage::__sleep

public TermStorage::__sleep() Overrides DependencySerializationTrait::__sleep File core/modules/taxonomy/src/TermStorage.php, line 351 Class TermStorage Defines a Controller class for taxonomy terms. Namespace Drupal\taxonomy Code public function __sleep() { $vars = parent::__sleep(); // Do not serialize static cache. unset($vars['parents'], $vars['parentsAll'], $vars['children'], $vars['treeChildren'], $vars['treeParents'], $vars['treeTerms'], $vars['trees']); return $vars; }

RoleStorage::isPermissionInRoles

public RoleStorage::isPermissionInRoles($permission, array $rids) Returns whether a permission is in one of the passed in roles. Parameters string $permission: The permission. array $rids: The list of role IDs to check. Return value bool TRUE is the permission is in at least one of the roles. FALSE otherwise. Overrides RoleStorageInterface::isPermissionInRoles File core/modules/user/src/RoleStorage.php, line 15 Class RoleStorage Controller class for user roles. Namespace Drupal\user

node_type_get_description

node_type_get_description(NodeTypeInterface $node_type) Description callback: Returns the node type description. Parameters \Drupal\node\NodeTypeInterface $node_type: The node type object. Return value string The node type description. File core/modules/node/node.module, line 291 The core module that allows content to be submitted to the site. Code function node_type_get_description(NodeTypeInterface $node_type) { return $node_type->getDescription(); }

FieldItemDataDefinition

A typed data definition class for defining field items. This class is just a small wrapper around field definitions to expose metadata about field item's via the Typed Data API. As the work is done by the field definitions, this class does not benefit and thus does not extend from MapDefinition or ComplexDataDefinitionBase. Hierarchy class \Drupal\Core\TypedData\DataDefinition implements \ArrayAccess, DataDefinitionInterfaceclass \Drupal\Core\Field\TypedData\FieldItemDataDefinition implements C

HtmlEscapedText::count

public HtmlEscapedText::count() File core/lib/Drupal/Component/Render/HtmlEscapedText.php, line 45 Class HtmlEscapedText Escapes HTML syntax characters to HTML entities for display in markup. Namespace Drupal\Component\Render Code public function count() { return Unicode::strlen($this->string); }

TourInterface::resetKeyedRoutes

public TourInterface::resetKeyedRoutes() Resets the statically cached keyed routes. File core/modules/tour/src/TourInterface.php, line 63 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function resetKeyedRoutes();