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

locale_translation_source_check_file

locale_translation_source_check_file($source) Checks whether a po file exists in the local filesystem. It will search in the directory set in the translation source. Which defaults to the "translations://" stream wrapper path. The directory may contain any valid stream wrapper. The "local" files property of the source object contains the definition of a po file we are looking for. The file name defaults to %project-%version.%language.po. Per project this value can be overridden using the server

QuickEditController::$tempStoreFactory

The PrivateTempStore factory. Type: \Drupal\user\PrivateTempStoreFactory File core/modules/quickedit/src/QuickEditController.php, line 30 Class QuickEditController Returns responses for Quick Edit module routes. Namespace Drupal\quickedit Code protected $tempStoreFactory;

ArgumentsResolver::handleUnresolvedArgument

protected ArgumentsResolver::handleUnresolvedArgument(\ReflectionParameter $parameter) Handles unresolved arguments for getArgument(). Subclasses that override this method may return a default value instead of throwing an exception. Throws \RuntimeException Thrown when there is a missing parameter. File core/lib/Drupal/Component/Utility/ArgumentsResolver.php, line 133 Class ArgumentsResolver Resolves the arguments to pass to a callable. Namespace Drupal\Component\Utility Code protecte

Textfield::getTranslationElement

public Textfield::getTranslationElement(LanguageInterface $translation_language, $source_config, $translation_config) Returns the translation form element for a given configuration definition. For complex data structures (such as mappings) that are translatable wholesale but contain non-translatable properties, the form element is responsible for checking access to the source value of those properties. In case of formatted text, for example, access to the source text format must be checked. If