ViewExecutable::$response

Stores the current response object. Type: \Symfony\Component\HttpFoundation\Response File core/modules/views/src/ViewExecutable.php, line 320 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $response = NULL;

pager_default_initialize

pager_default_initialize($total, $limit, $element = 0) Initializes a pager. This function sets up the necessary global variables so that the render system will correctly process #type 'pager' render arrays to output pagers that correspond to the items being displayed. If the items being displayed result from a database query performed using Drupal's database API, and if you have control over the construction of the database query, you do not need to call this function directly; instead, you can

RenderCache::__construct

public RenderCache::__construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager) Constructs a new RenderCache object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\Core\Cache\CacheFactoryInterface $cache_factory: The cache factory. \Drupal\Core\Cache\Context\CacheContextsManager $cache_contexts_manager: The cache contexts manager. File core/lib/Drupal/Core/Render/RenderCache.p

SortArray

Provides generic array sorting helper methods. Hierarchy class \Drupal\Component\Utility\SortArray Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/SortArray.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description SortArray::sortByKeyInt public static function Sorts an integer array item by an arbitrary key. SortArray::sortByKeyString public

admin-page.html.twig

Default theme implementation for an administrative page. Available variables: system_compact_link: Themed link to toggle compact view. containers: An list of administrative blocks keyed by position: left or right. Contains: blocks: A list of blocks within a container. See also template_preprocess_admin_page() File core/modules/system/templates/admin-page.html.twig Related topics Theme system overview Functions and templates for the user interface that themes can override.

rdf_preprocess_image

rdf_preprocess_image(&$variables) Implements hook_preprocess_HOOK() for image.html.twig. File core/modules/rdf/rdf.module, line 572 Enables semantically enriched output for Drupal sites in the form of RDFa. Code function rdf_preprocess_image(&$variables) { // Adds the RDF type for image. We cannot use the usual entity-based mapping // to get 'foaf:Image' because image does not have its own entity type or // bundle. $variables['attributes']['typeof'] = array('foaf:Image'); }

DatabaseQueue::numberOfItems

public DatabaseQueue::numberOfItems() Retrieves the number of items in the queue. This is intended to provide a "best guess" count of the number of items in the queue. Depending on the implementation and the setup, the accuracy of the results of this function may vary. e.g. On a busy system with a large number of consumers and items, the result might only be valid for a fraction of a second and not provide an accurate representation. Return value An integer estimate of the number of items in t

EntityViewBuilder::viewField

public EntityViewBuilder::viewField(FieldItemListInterface $items, $display_options = array()) Builds a renderable array for the value of a single field in an entity. The resulting output is a fully themed field with label and multiple values. This function can be used by third-party modules that need to output an isolated field. Do not use inside node (or any other entity) templates; use render($content[FIELD_NAME]) instead. The FieldItemInterface::view() method can be used to output a single

EntityDisplayFormBase::getEntityFromRouteMatch

public EntityDisplayFormBase::getEntityFromRouteMatch(RouteMatchInterface $route_match, $entity_type_id) Determines which entity will be used by this form from a RouteMatch object. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. string $entity_type_id: The entity type identifier. Return value \Drupal\Core\Entity\EntityInterface The entity object as determined from the passed-in route match. Overrides EntityForm::getEntityFromRouteMatch File core/modules/fiel

ViewAddForm::actions

protected ViewAddForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/views_ui/src/ViewAddForm.php, line 143 Class ViewAddForm Form controller for the Views edit form. Namespace Drupal\views_ui Code protected function actions(array $form, FormStateInterface $form_state) { $ac