search_preprocess_block

search_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/search/search.module, line 111 Enables site-wide keyword searching. Code function search_preprocess_block(&$variables) { if ($variables['plugin_id'] == 'search_form_block') { $variables['attributes']['role'] = 'search'; } }

ThemeInstaller::$configManager

Type: \Drupal\Core\Config\ConfigManagerInterface File core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 42 Class ThemeInstaller Manages theme installation/uninstallation. Namespace Drupal\Core\Extension Code protected $configManager;

MaintenanceMode::applies

public MaintenanceMode::applies(RouteMatchInterface $route_match) Returns whether the site is in maintenance mode. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value bool TRUE if the site is in maintenance mode. Overrides MaintenanceModeInterface::applies File core/lib/Drupal/Core/Site/MaintenanceMode.php, line 34 Class MaintenanceMode Provides the default implementation of the maintenance mode service. Namespace Drupal\Core\Site C

DataType

Defines a data type annotation object. The typed data API allows modules to support any kind of data based upon pre-defined primitive types and interfaces for complex data and lists. Defined data types may map to one of the pre-defined primitive types in \Drupal\Core\TypedData\Primitive or may be complex data types, containing on or more data properties. Typed data objects for complex data types have to implement the \Drupal\Core\TypedData\ComplexDataInterface. Further interface that may be imp

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

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

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;

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

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

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