CachedStorage::decode

public CachedStorage::decode($raw) Decodes configuration data from the storage-specific format. This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests. Parameters string $raw: The raw configuration data string to decode. Return value array The decoded configuration data as an associative array. Overrides StorageInterface::decode File core/lib/Drupal/Core/Config/CachedStorage.php, line 173 Class CachedStorage Defines the cache

SearchPageFormBase::$searchPageRepository

The search page repository. Type: \Drupal\search\SearchPageRepositoryInterface File core/modules/search/src/Form/SearchPageFormBase.php, line 43 Class SearchPageFormBase Provides a base form for search pages. Namespace Drupal\search\Form Code protected $searchPageRepository;

ModulesListForm::getFormId

public ModulesListForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/system/src/Form/ModulesListForm.php, line 108 Class ModulesListForm Provides module installation interface. Namespace Drupal\system\Form Code public function getFormId() { return 'system_modules'; }

SelectExtender::__call

public SelectExtender::__call($method, $args) Magic override for undefined methods. If one extender extends another extender, then methods in the inner extender will not be exposed on the outer extender. That's because we cannot know in advance what those methods will be, so we cannot provide wrapping implementations as we do above. Instead, we use this slower catch-all method to handle any additional methods. File core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 499 Class Selec

ResourceRoutes::__construct

public ResourceRoutes::__construct(ResourcePluginManager $manager, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger) Constructs a RouteSubscriber object. Parameters \Drupal\rest\Plugin\Type\ResourcePluginManager $manager: The resource plugin manager. \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager \Psr\Log\LoggerInterface $logger: A logger instance. File core/modules/rest/src/Routing/ResourceRoutes.php, line 48 Class Reso

ViewUI::endQueryCapture

public ViewUI::endQueryCapture() Add the list of queries run during render to buildinfo. See also ViewUI::startQueryCapture() File core/modules/views_ui/src/ViewUI.php, line 509 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function endQueryCapture() { $queries = Database::getLog('views'); $this->additionalQueries = $queries; }

Schema::addIndex

public Schema::addIndex($table, $name, $fields, array $spec) Add an index. @todo remove the $spec argument whenever schema introspection is added. Parameters $table: The table to be altered. $name: The name of the index. $fields: An array of field names or field information; if field information is passed, it's an array whose first element is the field name and whose second is the maximum length in the index. For example, the following will use the full length of the `foo` field, but limit the

toolbar_prerender_toolbar_administration_tray

toolbar_prerender_toolbar_administration_tray(array $element) Renders the toolbar's administration tray. Parameters array $element: A renderable array. Return value array The updated renderable array. See also drupal_render() File core/modules/toolbar/toolbar.module, line 222 Administration toolbar for quick access to top level administration items. Code function toolbar_prerender_toolbar_administration_tray(array $element) { $menu_tree = \Drupal::service('toolbar.menu_tree'); // Load

hook_field_formatter_settings_summary_alter

hook_field_formatter_settings_summary_alter(&$summary, $context) Alters the field formatter settings summary. Parameters array $summary: An array of summary messages. $context: An associative array with the following elements: formatter: The formatter object. field_definition: The field definition. view_mode: The view mode being configured. See also \Drupal\field_ui\DisplayOverView Related topics Field Types API Defines field, widget, display formatter, and storage types. File core

RefinableCacheableDependencyInterface

Allows to add cacheability metadata to an object for the current runtime. This must be used when changing an object in a way that affects its cacheability. For example, when changing the active translation of an entity based on the current content language then a cache context for that must be added. Hierarchy interface \Drupal\Core\Cache\CacheableDependencyInterfaceinterface \Drupal\Core\Cache\RefinableCacheableDependencyInterface File core/lib/Drupal/Core/Cache/RefinableCacheableDependenc