ResourceRoutes::$manager

The plugin manager for REST plugins. Type: \Drupal\rest\Plugin\Type\ResourcePluginManager File core/modules/rest/src/Routing/ResourceRoutes.php, line 22 Class ResourceRoutes Subscriber for REST-style routes. Namespace Drupal\rest\Routing Code protected $manager;

DatabaseBackend::set

public DatabaseBackend::set($cid, $data, $expire = Cache::PERMANENT, array $tags = array()) Stores data in the persistent cache. Core cache implementations set the created time on cache item with microtime(TRUE) rather than REQUEST_TIME_FLOAT, because the created time of cache items should match when they are created, not when the request started. Apart from being more accurate, this increases the chance an item will legitimately be considered valid. Parameters string $cid: The cache ID of the

RevisionableContentEntityBase

Provides a content entity with extended support for revisions. In addition to the parent entity class, base fields and methods for accessing the revision log message, revision owner and the revision creation time are provided. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Entity\ContentEntityBase implements \IteratorAggregate, ContentEntityInterfaceclass \Drupal\Core\Entity\Revisionabl

DbDumpCommand

Provides a command to dump the current database to a script. This script exports all tables in the given database, and all data (except for tables denoted as schema-only). The resulting script creates the tables and populates them with the exported data. @todo This command is currently only compatible with MySQL. Making it backend-agnostic will require \Drupal\Core\Database\Schema support the ability to retrieve table schema information. Note that using a raw SQL dump file here (eg, generated f

ConfigDependencies::onDependencyRemovalForResourceGranularity

protected ConfigDependencies::onDependencyRemovalForResourceGranularity(RestResourceConfigInterface $rest_config, array $dependencies) Informs the entity that entities it depends on will be deleted. Parameters \Drupal\rest\RestResourceConfigInterface $rest_config: The rest configuration. array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme. Return value bool TRUE if the entity has been changed

SearchQuery::prepareAndNormalize

public SearchQuery::prepareAndNormalize() Prepares the query and calculates the normalization factor. After the query is normalized the keywords are weighted to give the results a relevancy score. The query is ready for execution after this. Error and warning conditions can apply. Call getStatus() after calling this method to retrieve them. Return value bool TRUE if at least one keyword matched the search index; FALSE if not. File core/modules/search/src/SearchQuery.php, line 391 Class Sea

search_excerpt

search_excerpt($keys, $text, $langcode = NULL) Returns snippets from a piece of text, with search keywords highlighted. Used for formatting search results. All HTML tags will be stripped from $text. Parameters string $keys: A string containing a search query. string $text: The text to extract fragments from. string|null $langcode: Language code for the language of $text, if known. Return value array A render array containing HTML for the excerpt. Related topics Search interface The Drupal sea

UserStorage

Controller class for users. This extends the Drupal\Core\Entity\Sql\SqlContentEntityStorage class, adding required special handling for user objects. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityStorageBase implements EntityHandlerInterface, EntityStorageInterfaceclass \Drupal\Core\Entity\ContentEntityStorageBase implements ContentEntityStorageInterface, DynamicallyFieldableEntityStorageInterfacecl

install_tasks

install_tasks($install_state) Returns a list of all tasks the installer currently knows about. This function will return tasks regardless of whether or not they are intended to run on the current page request. However, the list can change based on the installation state (for example, if an installation profile hasn't been selected yet, we don't yet know which profile tasks will be available). You can override this using hook_install_tasks() or hook_install_tasks_alter(). Parameters $install_st

SessionManager::regenerate

public SessionManager::regenerate($destroy = FALSE, $lifetime = NULL) Regenerates id that represents this storage. This method must invoke session_regenerate_id($destroy) unless this interface is used for a storage object designed for unit or functional testing where a real PHP session would interfere with testing. Note regenerate+destroy should not clear the session data in memory only delete the session data from persistent storage. Care: When regenerating the session ID no locking is involve