Issue #2100329 by cosmicdreams: Use \Drupal instead of Drupal to make IDEs and static code analyse tools happy.

8.0.x
Alex Pott 2013-10-03 12:26:25 +01:00
parent bc44cbda91
commit 3cee107ce5
178 changed files with 459 additions and 459 deletions

View File

@ -2277,7 +2277,7 @@ function _drupal_load_test_overrides($test_prefix) {
global $conf, $config_directories;
// Do not use the parent site's config directories. Use only the child site's.
// @see Drupal\simpletest\TestBase::prepareConfigDirectories()
// @see \Drupal\simpletest\TestBase::prepareConfigDirectories()
$path_prefix = 'simpletest/' . substr($test_prefix, 10);
$config_directories = array();
foreach (array(CONFIG_ACTIVE_DIRECTORY, CONFIG_STAGING_DIRECTORY) as $type) {
@ -2353,7 +2353,7 @@ function drupal_language_initialize() {
/**
* Returns the language object for a given language type.
*
* @see Drupal\Core\Language\LanguageManager
* @see \Drupal\Core\Language\LanguageManager
*
* @param string $type
* The type of language object needed, e.g. Language::TYPE_INTERFACE.
@ -2561,7 +2561,7 @@ function language_is_locked($langcode) {
/**
* Returns the default language used on the site.
*
* @return Drupal\Core\Language\Language
* @return \Drupal\Core\Language\Language
* A language object.
*/
function language_default() {
@ -3086,7 +3086,7 @@ function drupal_check_memory_limit($required, $memory_limit = NULL) {
* @deprecated Use \Drupal::lock() instead, or even better have the lock service
* injected into your object.
*
* @return Drupal\Core\Lock\LockBackendInterface
* @return \Drupal\Core\Lock\LockBackendInterface
*/
function lock() {
return \Drupal::lock();

View File

@ -20,10 +20,10 @@ use Drupal\Core\Cache\Cache;
* The cache bin for which the cache object should be returned, defaults to
* 'cache'.
*
* @return Drupal\Core\Cache\CacheBackendInterface
* @return \Drupal\Core\Cache\CacheBackendInterface
* The cache object associated with the specified bin.
*
* @see Drupal\Core\Cache\CacheBackendInterface
* @see \Drupal\Core\Cache\CacheBackendInterface
*/
function cache($bin = 'cache') {
return \Drupal::cache($bin);

View File

@ -297,7 +297,7 @@ function drupal_get_profile() {
* @deprecated This will be removed in 8.0. Instead, register a new breadcrumb
* builder service.
*
* @see Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface
* @see \Drupal\Core\Breadcrumb\BreadcrumbBuilderInterface
*/
function drupal_set_breadcrumb($breadcrumb = NULL) {
$stored_breadcrumb = &drupal_static(__FUNCTION__);
@ -3135,8 +3135,8 @@ function _drupal_bootstrap_code() {
*
* DrupalKernel skips this and replicates it via event listeners.
*
* @see Drupal\Core\EventSubscriber\PathSubscriber;
* @see Drupal\Core\EventSubscriber\LegacyRequestSubscriber;
* @see \Drupal\Core\EventSubscriber\PathSubscriber;
* @see \Drupal\Core\EventSubscriber\LegacyRequestSubscriber;
*/
function _drupal_bootstrap_full($skip = FALSE) {
static $called = FALSE;
@ -4949,7 +4949,7 @@ function archiver_get_archiver($file) {
* @return array
* The Drupal Updater class registry.
*
* @see Drupal\Core\Updater\Updater
* @see \Drupal\Core\Updater\Updater
* @see hook_updater_info()
* @see hook_updater_info_alter()
*/
@ -4969,7 +4969,7 @@ function drupal_get_updaters() {
* @return
* The Drupal FileTransfer class registry.
*
* @see Drupal\Core\FileTransfer\FileTransfer
* @see \Drupal\Core\FileTransfer\FileTransfer
* @see hook_filetransfer_info()
* @see hook_filetransfer_info_alter()
*/

View File

@ -102,7 +102,7 @@ function config_uninstall_default_config($type, $name) {
/**
* Gets configuration object names starting with a given prefix.
*
* @see Drupal\Core\Config\StorageInterface::listAll()
* @see \Drupal\Core\Config\StorageInterface::listAll()
*/
function config_get_storage_names_with_prefix($prefix = '') {
return drupal_container()->get('config.storage')->listAll($prefix);
@ -123,7 +123,7 @@ function config_get_storage_names_with_prefix($prefix = '') {
* config object returned will contain the contents of book.admin
* configuration file.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* A configuration object.
*/
function config($name) {
@ -219,9 +219,9 @@ function config_get_entity_type_by_name($name) {
*
* Use the typed data manager service for creating typed configuration objects.
*
* @see Drupal\Core\TypedData\TypedDataManager::create()
* @see \Drupal\Core\TypedData\TypedDataManager::create()
*
* @return Drupal\Core\TypedData\TypedConfigManager
* @return \Drupal\Core\TypedData\TypedConfigManager
*/
function config_typed() {
return drupal_container()->get('config.typed');
@ -230,9 +230,9 @@ function config_typed() {
/**
* Creates a configuration snapshot following a successful import.
*
* @param Drupal\Core\Config\StorageInterface $source_storage
* @param \Drupal\Core\Config\StorageInterface $source_storage
* The storage to synchronize configuration from.
* @param Drupal\Core\Config\StorageInterface $snapshot_storage
* @param \Drupal\Core\Config\StorageInterface $snapshot_storage
* The storage to synchronize configuration to.
*/
function config_import_create_snapshot(StorageInterface $source_storage, StorageInterface $snapshot_storage) {
@ -245,9 +245,9 @@ function config_import_create_snapshot(StorageInterface $source_storage, Storage
/**
* Return a formatted diff of a named config between two storages.
*
* @param Drupal\Core\Config\StorageInterface $source_storage
* @param \Drupal\Core\Config\StorageInterface $source_storage
* The storage to diff configuration from.
* @param Drupal\Core\Config\StorageInterface $target_storage
* @param \Drupal\Core\Config\StorageInterface $target_storage
* The storage to diff configuration to.
* @param string $name
* The name of the configuration object to diff.

View File

@ -192,7 +192,7 @@ function entity_get_view_modes($entity_type = NULL) {
* @param bool $reset
* Whether to reset the internal cache for the requested entity type.
*
* @return Drupal\Core\Entity\EntityInterface
* @return \Drupal\Core\Entity\EntityInterface
* The entity object, or NULL if there is no entity with the given id.
*
* @see \Drupal\Core\Entity\EntityManager
@ -216,7 +216,7 @@ function entity_load($entity_type, $id, $reset = FALSE) {
* @param int $revision_id
* The id of the entity to load.
*
* @return Drupal\Core\Entity\EntityInterface
* @return \Drupal\Core\Entity\EntityInterface
* The entity object, or FALSE if there is no entity with the given revision
* id.
*
@ -259,7 +259,7 @@ function entity_revision_delete($entity_type, $revision_id) {
* @return EntityInterface|FALSE
* The entity object, or FALSE if there is no entity with the given UUID.
*
* @throws Drupal\Core\Entity\EntityStorageException
* @throws \Drupal\Core\Entity\EntityStorageException
* Thrown in case the requested entity type does not support UUIDs.
*
* @see \Drupal\Core\Entity\EntityManager
@ -383,7 +383,7 @@ function entity_delete_multiple($entity_type, array $ids) {
* An array of values to set, keyed by property name. If the entity type has
* bundles the bundle key has to be specified.
*
* @return Drupal\Core\Entity\EntityInterface
* @return \Drupal\Core\Entity\EntityInterface
* A new entity object.
*/
function entity_create($entity_type, array $values) {
@ -395,7 +395,7 @@ function entity_create($entity_type, array $values) {
/**
* Gets the entity controller class for an entity type.
*
* @return Drupal\Core\Entity\EntityStorageControllerInterface
* @return \Drupal\Core\Entity\EntityStorageControllerInterface
*
* @deprecated Use \Drupal\Core\Entity\EntityManager::getStorageController().
*/
@ -410,7 +410,7 @@ function entity_get_controller($entity_type) {
* This is a wrapper for Drupal\Core\Entity\EntityInterface::label(). This function
* should only be used as a callback, e.g. for menu title callbacks.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity for which to generate the label.
* @param $langcode
* (optional) The language code of the language that should be used for
@ -420,7 +420,7 @@ function entity_get_controller($entity_type) {
* @return
* The label of the entity, or NULL if there is no label defined.
*
* @see Drupal\Core\Entity\EntityInterface::label()
* @see \Drupal\Core\Entity\EntityInterface::label()
*/
function entity_page_label(EntityInterface $entity, $langcode = NULL) {
return $entity->label($langcode);
@ -460,7 +460,7 @@ function entity_access_controller($entity_type) {
* identifying the controlled form. Defaults to 'default' which is the usual
* create/edit form.
*
* @return Drupal\Core\Entity\EntityFormControllerInterface
* @return \Drupal\Core\Entity\EntityFormControllerInterface
* An entity form controller instance.
*
* @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController().
@ -541,7 +541,7 @@ function entity_get_form(EntityInterface $entity, $operation = 'default', array
* @param string $entity_type
* The type of the entity.
*
* @return Drupal\Core\Entity\EntityListControllerInterface
* @return \Drupal\Core\Entity\EntityListControllerInterface
* An entity list controller.
*
* @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController().
@ -557,7 +557,7 @@ function entity_list_controller($entity_type) {
* @param string $entity_type
* The type of the entity.
*
* @return Drupal\Core\Entity\EntityRenderControllerInterface
* @return \Drupal\Core\Entity\EntityRenderControllerInterface
* An entity render controller.
*
* @deprecated Use \Drupal\Core\Entity\EntityManager::getFormController().
@ -570,7 +570,7 @@ function entity_render_controller($entity_type) {
/**
* Returns the render array for an entity.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to be rendered.
* @param string $view_mode
* The view mode that should be used to display the entity.

View File

@ -1350,7 +1350,7 @@ function drupal_unlink($uri, $context = NULL) {
* @return string|false
* The absolute local filepath (with no symbolic links), or FALSE on failure.
*
* @see Drupal\Core\StreamWrapper\StreamWrapperInterface::realpath()
* @see \Drupal\Core\StreamWrapper\StreamWrapperInterface::realpath()
* @see http://php.net/manual/function.realpath.php
* @ingroup php_wrappers
*/

View File

@ -1467,7 +1467,7 @@ function install_find_translations() {
/**
* Build a file translation service for installation.
*
* @return Drupal\Core\StringTranslation\Translator\FileTranslation
* @return \Drupal\Core\StringTranslation\Translator\FileTranslation
* File translation service for the installer.
*/
function install_file_translation_service() {

View File

@ -206,7 +206,7 @@ function drupal_mail($module, $key, $to, $langcode, $params = array(), $from = N
* A key to identify the e-mail sent. The final e-mail ID for the e-mail
* alter hook in drupal_mail() would have been {$module}_{$key}.
*
* @return Drupal\Core\Mail\MailInterface
* @return \Drupal\Core\Mail\MailInterface
* An object that implements Drupal\Core\Mail\MailInterface.
*
* @throws \Exception

View File

@ -321,7 +321,7 @@ function module_set_weight($module, $weight) {
->save();
// Prepare the new module list, sorted by weight, including filenames.
// @see Drupal\Core\Extension\ModuleHandler::install()
// @see \Drupal\Core\Extension\ModuleHandler::install()
$module_handler = \Drupal::moduleHandler();
$current_module_filenames = $module_handler->getModuleList();
$current_modules = array_fill_keys(array_keys($current_module_filenames), 0);

View File

@ -1054,7 +1054,7 @@ function update_get_update_list() {
* - 'module': The name of the module that this update function belongs to.
* - 'number': The number of this update function within that module.
*
* @see Drupal\Component\Graph\Graph::searchAndSort()
* @see \Drupal\Component\Graph\Graph::searchAndSort()
*/
function update_resolve_dependencies($starting_updates) {
// Obtain a dependency graph for the requested update functions.
@ -1170,7 +1170,7 @@ function update_get_update_function_list($starting_updates) {
* - 'module': The name of the module that this update function belongs to.
* - 'number': The number of this update function within that module.
*
* @see Drupal\Component\Graph\Graph::searchAndSort()
* @see \Drupal\Component\Graph\Graph::searchAndSort()
* @see update_resolve_dependencies()
*/
function update_build_dependency_graph($update_functions) {

View File

@ -19,7 +19,7 @@ interface ArchiverInterface {
* The full system path of the file or directory to add. Only local files
* and directories are supported.
*
* @return Drupal\Component\Archiver\ArchiverInterface
* @return \Drupal\Component\Archiver\ArchiverInterface
* The called object.
*/
public function add($file_path);
@ -30,7 +30,7 @@ interface ArchiverInterface {
* @param string $path
* The file name relative to the root of the archive to remove.
*
* @return Drupal\Component\Archiver\ArchiverInterface
* @return \Drupal\Component\Archiver\ArchiverInterface
* The called object.
*/
public function remove($path);
@ -45,7 +45,7 @@ interface ArchiverInterface {
* relative to the root of the archive. If not specified, all files
* in the archive will be extracted.
*
* @return Drupal\Component\Archiver\ArchiverInterface
* @return \Drupal\Component\Archiver\ArchiverInterface
* The called object.
*/
public function extract($path, array $files = array());

View File

@ -15,7 +15,7 @@ class Tar implements ArchiverInterface {
/**
* The underlying ArchiveTar instance that does the heavy lifting.
*
* @var Drupal\Component\Archiver\ArchiveTar
* @var \Drupal\Component\Archiver\ArchiveTar
*/
protected $tar;
@ -27,7 +27,7 @@ class Tar implements ArchiverInterface {
* are supported. If the file does not yet exist, it will be created if
* appropriate.
*
* @throws Drupal\Component\Archiver\ArchiverException
* @throws \Drupal\Component\Archiver\ArchiverException
*/
public function __construct($file_path) {
$this->tar = new ArchiveTar($file_path);

View File

@ -29,7 +29,7 @@ class Zip implements ArchiverInterface {
* are supported. If the file does not yet exist, it will be created if
* appropriate.
*
* @throws Drupal\Component\Archiver\ArchiverException
* @throws \Drupal\Component\Archiver\ArchiverException
*/
public function __construct($file_path) {
$this->zip = new \ZipArchive();

View File

@ -12,8 +12,8 @@ use Drupal\Component\Gettext\PoHeader;
/**
* Methods required for both reader and writer implementations.
*
* @see Drupal\Component\Gettext\PoReaderInterface
* @see Drupal\Component\Gettext\PoWriterInterface
* @see \Drupal\Component\Gettext\PoReaderInterface
* @see \Drupal\Component\Gettext\PoWriterInterface
*/
interface PoMetadataInterface {
@ -36,7 +36,7 @@ interface PoMetadataInterface {
/**
* Set header metadata.
*
* @param Drupal\Component\Gettext\PoHeader $header
* @param \Drupal\Component\Gettext\PoHeader $header
* Header object representing metadata in a PO header.
*/
public function setHeader(PoHeader $header);
@ -44,7 +44,7 @@ interface PoMetadataInterface {
/**
* Get header metadata.
*
* @return Drupal\Component\Gettext\PoHeader $header
* @return \Drupal\Component\Gettext\PoHeader $header
* Header instance representing metadata in a PO header.
*/
public function getHeader();

View File

@ -17,7 +17,7 @@ interface PoReaderInterface extends PoMetadataInterface {
/**
* Reads and returns a PoItem (source/translation pair).
*
* @return Drupal\Component\Gettext\PoItem
* @return \Drupal\Component\Gettext\PoItem
* Wrapper for item data instance.
*/
public function readItem();

View File

@ -87,14 +87,14 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
/**
* The PO stream header.
*
* @var Drupal\Component\Gettext\PoHeader
* @var \Drupal\Component\Gettext\PoHeader
*/
private $_header;
/**
* Object wrapper for the last read source/translation pair.
*
* @var Drupal\Component\Gettext\PoItem
* @var \Drupal\Component\Gettext\PoItem
*/
private $_last_item;

View File

@ -28,7 +28,7 @@ class PoStreamWriter implements PoWriterInterface, PoStreamInterface {
/**
* The Gettext PO header.
*
* @var Drupal\Component\Gettext\PoHeader
* @var \Drupal\Component\Gettext\PoHeader
*/
private $_header;
@ -42,7 +42,7 @@ class PoStreamWriter implements PoWriterInterface, PoStreamInterface {
/**
* Get the PO header of the current stream.
*
* @return Drupal\Component\Gettext\PoHeader
* @return \Drupal\Component\Gettext\PoHeader
* The Gettext PO header.
*/
public function getHeader() {
@ -52,7 +52,7 @@ class PoStreamWriter implements PoWriterInterface, PoStreamInterface {
/**
* Set the PO header for the current stream.
*
* @param Drupal\Component\Gettext\PoHeader $header
* @param \Drupal\Component\Gettext\PoHeader $header
* The Gettext PO header to set.
*/
public function setHeader(PoHeader $header) {

View File

@ -101,7 +101,7 @@ class Graph {
* @param $component
* The component of the last vertex.
*
* @see Drupal\Component\Graph\Graph::searchAndSort()
* @see \Drupal\Component\Graph\Graph::searchAndSort()
*/
protected function depthFirstSearch(&$state, $start, &$component = NULL) {
// Assign new component for each new vertex, i.e. when not called recursively.

View File

@ -133,7 +133,7 @@ class DerivativeDiscoveryDecorator implements DiscoveryInterface {
* @param array $base_definition
* The base plugin definition to build derivatives.
*
* @return Drupal\Component\Plugin\Discovery\DerivativeInterface|null
* @return \Drupal\Component\Plugin\Discovery\DerivativeInterface|null
* A DerivativeInterface or null if none exists for the plugin.
*/
protected function getDerivativeFetcher($base_plugin_id, array $base_definition) {

View File

@ -26,7 +26,7 @@ class DefaultFactory implements FactoryInterface {
* The plugin definition includes the plugin class and possibly other
* information necessary for proper instantiation.
*
* @var Drupal\Component\Plugin\Discovery\DiscoveryInterface
* @var \Drupal\Component\Plugin\Discovery\DiscoveryInterface
*/
protected $discovery;

View File

@ -25,7 +25,7 @@ use Drupal\Component\Plugin\Mapper\MapperInterface;
* To follow this pattern, plugin managers can extend from the PluginManagerBase
* class, which contains the proxying logic.
*
* @see Drupal\Component\Plugin\PluginManagerBase
* @see \Drupal\Component\Plugin\PluginManagerBase
*/
interface PluginManagerInterface extends DiscoveryInterface, FactoryInterface, MapperInterface {
}

View File

@ -127,7 +127,7 @@ class CssOptimizer implements AssetOptimizerInterface {
* @return
* The contents of the CSS file at $matches[1], with corrected paths.
*
* @see Drupal\Core\Asset\AssetOptimizerInterface::loadFile()
* @see \Drupal\Core\Asset\AssetOptimizerInterface::loadFile()
*/
protected function loadNestedFile($matches) {
$filename = $matches[1];

View File

@ -45,7 +45,7 @@ class BackendChain implements CacheBackendInterface {
* @param CacheBackendInterface $backend
* The cache backend to be appended to the cache chain.
*
* @return Drupal\Core\Cache\BackendChain
* @return \Drupal\Core\Cache\BackendChain
* The called object.
*/
public function appendBackend(CacheBackendInterface $backend) {
@ -60,7 +60,7 @@ class BackendChain implements CacheBackendInterface {
* @param CacheBackendInterface $backend
* The backend to be prepended to the cache chain.
*
* @return Drupal\Core\Cache\BackendChain
* @return \Drupal\Core\Cache\BackendChain
* The called object.
*/
public function prependBackend(CacheBackendInterface $backend) {

View File

@ -67,7 +67,7 @@ namespace Drupal\Core\Cache;
* item has been updated, all future requests will use the updated value.
*
* @see cache()
* @see Drupal\Core\Cache\DatabaseBackend
* @see \Drupal\Core\Cache\DatabaseBackend
*/
interface CacheBackendInterface {
@ -92,7 +92,7 @@ interface CacheBackendInterface {
* @return object|false
* The cache item or FALSE on failure.
*
* @see Drupal\Core\Cache\CacheBackendInterface::getMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::getMultiple()
*/
public function get($cid, $allow_invalid = FALSE);
@ -114,7 +114,7 @@ interface CacheBackendInterface {
* @return array
* An array of cache item objects indexed by cache ID.
*
* @see Drupal\Core\Cache\CacheBackendInterface::get()
* @see \Drupal\Core\Cache\CacheBackendInterface::get()
*/
public function getMultiple(&$cids, $allow_invalid = FALSE);
@ -143,8 +143,8 @@ interface CacheBackendInterface {
* a node, both the node ID and the author's user ID might be passed in as
* tags. For example array('node' => array(123), 'user' => array(92)).
*
* @see Drupal\Core\Cache\CacheBackendInterface::get()
* @see Drupal\Core\Cache\CacheBackendInterface::getMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::get()
* @see \Drupal\Core\Cache\CacheBackendInterface::getMultiple()
*/
public function set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array());
@ -159,10 +159,10 @@ interface CacheBackendInterface {
* @param string $cid
* The cache ID to delete.
*
* @see Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteAll()
*/
public function delete($cid);
@ -178,10 +178,10 @@ interface CacheBackendInterface {
* @param array $cids
* An array of cache IDs to delete.
*
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::delete()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::delete()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteAll()
*/
public function deleteMultiple(array $cids);
@ -198,21 +198,21 @@ interface CacheBackendInterface {
* Associative array of tags, in the same format that is passed to
* CacheBackendInterface::set().
*
* @see Drupal\Core\Cache\CacheBackendInterface::set()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see Drupal\Core\Cache\CacheBackendInterface::delete()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::set()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::delete()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteAll()
*/
public function deleteTags(array $tags);
/**
* Deletes all cache items in a bin.
*
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
* @see Drupal\Core\Cache\CacheBackendInterface::delete()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::delete()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteTags()
*/
public function deleteAll();
@ -225,10 +225,10 @@ interface CacheBackendInterface {
* @param string $cid
* The cache ID to invalidate.
*
* @see Drupal\Core\Cache\CacheBackendInterface::delete()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::delete()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
*/
public function invalidate($cid);
@ -241,10 +241,10 @@ interface CacheBackendInterface {
* @param string $cids
* An array of cache IDs to invalidate.
*
* @see Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
*/
public function invalidateMultiple(array $cids);
@ -255,11 +255,11 @@ interface CacheBackendInterface {
* Associative array of tags, in the same format that is passed to
* CacheBackendInterface::set().
*
* @see Drupal\Core\Cache\CacheBackendInterface::set()
* @see Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::set()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
*/
public function invalidateTags(array $tags);
@ -272,10 +272,10 @@ interface CacheBackendInterface {
* @param string $cids
* An array of cache IDs to invalidate.
*
* @see Drupal\Core\Cache\CacheBackendInterface::deleteAll()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
* @see \Drupal\Core\Cache\CacheBackendInterface::deleteAll()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidate()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
* @see \Drupal\Core\Cache\CacheBackendInterface::invalidateTags()
*/
public function invalidateAll();

View File

@ -360,7 +360,7 @@ class DatabaseBackend implements CacheBackendInterface {
* @return int
* Sum of all invalidations.
*
* @see Drupal\Core\Cache\DatabaseBackend::flattenTags()
* @see \Drupal\Core\Cache\DatabaseBackend::flattenTags()
*/
protected function checksumTags($flat_tags) {
$tag_cache = &drupal_static('Drupal\Core\Cache\CacheBackendInterface::tagCache', array());

View File

@ -22,14 +22,14 @@ class CachedStorage implements StorageInterface, StorageCacheInterface {
/**
* The configuration storage to be cached.
*
* @var Drupal\Core\Config\StorageInterface
* @var \Drupal\Core\Config\StorageInterface
*/
protected $storage;
/**
* The instantiated Cache backend.
*
* @var Drupal\Core\Cache\CacheBackendInterface
* @var \Drupal\Core\Cache\CacheBackendInterface
*/
protected $cache;
@ -43,9 +43,9 @@ class CachedStorage implements StorageInterface, StorageCacheInterface {
/**
* Constructs a new CachedStorage controller.
*
* @param Drupal\Core\Config\StorageInterface $storage
* @param \Drupal\Core\Config\StorageInterface $storage
* A configuration storage controller to be cached.
* @param Drupal\Core\Cache\CacheBackendInterface $cache
* @param \Drupal\Core\Cache\CacheBackendInterface $cache
* A cache backend instance to use for caching.
*/
public function __construct(StorageInterface $storage, CacheBackendInterface $cache) {
@ -94,7 +94,7 @@ class CachedStorage implements StorageInterface, StorageCacheInterface {
$list = array();
// The names array is passed by reference and will only contain the names of
// config object not found after the method call.
// @see Drupal\Core\Cache\CacheBackendInterface::getMultiple()
// @see \Drupal\Core\Cache\CacheBackendInterface::getMultiple()
$cached_list = $this->cache->getMultiple($names);
if (!empty($names)) {

View File

@ -59,7 +59,7 @@ class Config {
/**
* The storage used to load and save this configuration object.
*
* @var Drupal\Core\Config\StorageInterface
* @var \Drupal\Core\Config\StorageInterface
*/
protected $storage;
@ -97,7 +97,7 @@ class Config {
/**
* Initializes a configuration object.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function init() {
@ -113,7 +113,7 @@ class Config {
* @param array $data
* Array of loaded data for this configuration object.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function initWithData(array $data) {
@ -139,7 +139,7 @@ class Config {
/**
* Sets the name of this configuration object.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function setName($name) {
@ -246,7 +246,7 @@ class Config {
* @param array $data
* The new configuration data.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function setData(array $data) {
@ -266,7 +266,7 @@ class Config {
* @param array $data
* The new configuration data.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
protected function replaceData(array $data) {
@ -283,7 +283,7 @@ class Config {
* @param array $data
* The overridden values of the configuration data.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function setOverride(array $data) {
@ -297,7 +297,7 @@ class Config {
*
* Merges overridden configuration data into the original data.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
protected function setOverriddenData() {
@ -315,7 +315,7 @@ class Config {
* This method should be called after the original data or the overridden data
* has been changed.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
protected function resetOverriddenData() {
@ -331,7 +331,7 @@ class Config {
* @param string $value
* Value to associate with identifier.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function set($key, $value) {
@ -400,7 +400,7 @@ class Config {
* @param string $key
* Name of the key whose value should be unset.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function clear($key) {
@ -421,7 +421,7 @@ class Config {
/**
* Loads configuration data into this object.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function load() {
@ -443,7 +443,7 @@ class Config {
/**
* Saves the configuration object.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function save() {
@ -461,7 +461,7 @@ class Config {
/**
* Deletes the configuration object.
*
* @return Drupal\Core\Config\Config
* @return \Drupal\Core\Config\Config
* The configuration object.
*/
public function delete() {

View File

@ -10,7 +10,7 @@ class ConfigEvent extends Event {
/**
* Configuration object.
*
* @var Drupal\Core\Config\Config
* @var \Drupal\Core\Config\Config
*/
protected $config;

View File

@ -15,18 +15,18 @@ use Drupal\Core\Config\Context\ContextInterface;
* The configuration object factory instantiates a Config object for each
* configuration object name that is accessed and returns it to callers.
*
* @see Drupal\Core\Config\Config
* @see \Drupal\Core\Config\Config
*
* Each configuration object gets a storage controller object injected, which
* is used for reading and writing the configuration data.
*
* @see Drupal\Core\Config\StorageInterface
* @see \Drupal\Core\Config\StorageInterface
*
* A configuration context is an object containing parameters that will be
* available to the configuration plug-ins for them to customize the
* configuration data in different ways.
*
* @see Drupal\Core\Config\Context\ContextInterface
* @see \Drupal\Core\Config\Context\ContextInterface
*/
class ConfigFactory {

View File

@ -16,8 +16,8 @@ use Drupal\Core\Config\Config;
* by the configuration object for storage operations and notifications
* and contextual data to be used by configuration event listeners.
*
* @see Drupal\Core\Config\Config
* @see Drupal\Core\Config\ConfigFactory
* @see \Drupal\Core\Config\Config
* @see \Drupal\Core\Config\ConfigFactory
* @see \Drupal::config()
*/
interface ContextInterface {

View File

@ -18,7 +18,7 @@ class DatabaseStorage implements StorageInterface {
/**
* The database connection.
*
* @var Drupal\Core\Database\Connection
* @var \Drupal\Core\Database\Connection
*/
protected $connection;
@ -39,7 +39,7 @@ class DatabaseStorage implements StorageInterface {
/**
* Constructs a new DatabaseStorage controller.
*
* @param Drupal\Core\Database\Connection $connection
* @param \Drupal\Core\Database\Connection $connection
* A Database connection to use for reading and writing configuration data.
* @param string $table
* A database table name to store configuration data in.
@ -65,7 +65,7 @@ class DatabaseStorage implements StorageInterface {
* Implements Drupal\Core\Config\StorageInterface::read().
*
* @throws PDOException
* @throws Drupal\Core\Database\DatabaseExceptionWrapper
* @throws \Drupal\Core\Database\DatabaseExceptionWrapper
* Only thrown in case $this->options['throw_exception'] is TRUE.
*/
public function read($name) {
@ -171,7 +171,7 @@ class DatabaseStorage implements StorageInterface {
* Implements Drupal\Core\Config\StorageInterface::listAll().
*
* @throws PDOException
* @throws Drupal\Core\Database\DatabaseExceptionWrapper
* @throws \Drupal\Core\Database\DatabaseExceptionWrapper
* Only thrown in case $this->options['throw_exception'] is TRUE.
*/
public function listAll($prefix = '') {
@ -184,7 +184,7 @@ class DatabaseStorage implements StorageInterface {
* Implements Drupal\Core\Config\StorageInterface::deleteAll().
*
* @throws PDOException
* @throws Drupal\Core\Database\DatabaseExceptionWrapper
* @throws \Drupal\Core\Database\DatabaseExceptionWrapper
* Only thrown in case $this->options['throw_exception'] is TRUE.
*/
public function deleteAll($prefix = '') {

View File

@ -106,7 +106,7 @@ class FileStorage implements StorageInterface {
* Implements Drupal\Core\Config\StorageInterface::write().
*
* @throws Symfony\Component\Yaml\Exception\DumpException
* @throws Drupal\Core\Config\StorageException
* @throws \Drupal\Core\Config\StorageException
*/
public function write($name, array $data) {
$data = $this->encode($data);

View File

@ -59,7 +59,7 @@ class InstallStorage extends FileStorage {
/**
* Overrides Drupal\Core\Config\FileStorage::write().
*
* @throws Drupal\Core\Config\StorageException
* @throws \Drupal\Core\Config\StorageException
*/
public function write($name, array $data) {
throw new StorageException('Write operation is not allowed during install.');
@ -68,7 +68,7 @@ class InstallStorage extends FileStorage {
/**
* Overrides Drupal\Core\Config\FileStorage::delete().
*
* @throws Drupal\Core\Config\StorageException
* @throws \Drupal\Core\Config\StorageException
*/
public function delete($name) {
throw new StorageException('Delete operation is not allowed during install.');
@ -77,7 +77,7 @@ class InstallStorage extends FileStorage {
/**
* Overrides Drupal\Core\Config\FileStorage::rename().
*
* @throws Drupal\Core\Config\StorageException
* @throws \Drupal\Core\Config\StorageException
*/
public function rename($name, $new_name) {
throw new StorageException('Rename operation is not allowed during install.');
@ -162,7 +162,7 @@ class InstallStorage extends FileStorage {
/**
* Overrides Drupal\Core\Config\FileStorage::deleteAll().
*
* @throws Drupal\Core\Config\StorageException
* @throws \Drupal\Core\Config\StorageException
*/
public function deleteAll($prefix = '') {
throw new StorageException('Delete operation is not allowed during install.');

View File

@ -24,14 +24,14 @@ class ExceptionController extends ContainerAware {
/**
* The content negotiation library.
*
* @var Drupal\Core\ContentNegotiation
* @var \Drupal\Core\ContentNegotiation
*/
protected $negotiation;
/**
* Constructor.
*
* @param Drupal\Core\ContentNegotiation $negotiation
* @param \Drupal\Core\ContentNegotiation $negotiation
* The content negotiation library to use to determine the correct response
* format.
*/

View File

@ -17,7 +17,7 @@ namespace Drupal\Core\Database;
* database. Calling code can then treat it the same as if it were an actual
* result set that happens to contain no records.
*
* @see Drupal\search\SearchQuery
* @see \Drupal\search\SearchQuery
*/
class StatementEmpty implements \Iterator, StatementInterface {

View File

@ -91,7 +91,7 @@ class Transaction {
* transaction has been rolled back or the log messages will be rolled back
* too.
*
* @see Drupal\Core\Database\Connection::rollback()
* @see \Drupal\Core\Database\Connection::rollback()
* @see watchdog_exception()
*/
public function rollback() {

View File

@ -15,7 +15,7 @@ use Drupal\Core\Language\Language;
* This class extends the basic component and adds in Drupal-specific
* handling, like translation of the format() method.
*
* @see Drupal/Component/Datetime/DateTimePlus.php
* @see \Drupal/Component/Datetime/DateTimePlus.php
*/
class DrupalDateTime extends DateTimePlus {

View File

@ -168,7 +168,7 @@ class DatabaseStorageController extends FieldableEntityStorageControllerBase {
if (!empty($this->entityInfo['class'])) {
// We provide the necessary arguments for PDO to create objects of the
// specified entity class.
// @see Drupal\Core\Entity\EntityInterface::__construct()
// @see \Drupal\Core\Entity\EntityInterface::__construct()
$query_result->setFetchMode(\PDO::FETCH_CLASS, $this->entityInfo['class'], array(array(), $this->entityType));
}
$queried_entities = $query_result->fetchAllAssoc($this->idKey);
@ -221,7 +221,7 @@ class DatabaseStorageController extends FieldableEntityStorageControllerBase {
if (!empty($this->entityInfo['class'])) {
// We provide the necessary arguments for PDO to create objects of the
// specified entity class.
// @see Drupal\Core\Entity\EntityInterface::__construct()
// @see \Drupal\Core\Entity\EntityInterface::__construct()
$query_result->setFetchMode(\PDO::FETCH_CLASS, $this->entityInfo['class'], array(array(), $this->entityType));
}
$queried_entities = $query_result->fetchAllAssoc($this->idKey);

View File

@ -144,7 +144,7 @@ class EntityFormController extends FormBase implements EntityFormControllerInter
/**
* Returns the actual form array to be built.
*
* @see Drupal\Core\Entity\EntityFormController::build()
* @see \Drupal\Core\Entity\EntityFormController::build()
*/
public function form(array $form, array &$form_state) {
$entity = $this->entity;

View File

@ -145,7 +145,7 @@ class EntityListController implements EntityListControllerInterface, EntityContr
* @return array
* A render array structure of header strings.
*
* @see Drupal\Core\Entity\EntityListController::render()
* @see \Drupal\Core\Entity\EntityListController::render()
*/
public function buildHeader() {
$row['operations'] = t('Operations');
@ -161,7 +161,7 @@ class EntityListController implements EntityListControllerInterface, EntityContr
* @return array
* A render array structure of fields for this entity.
*
* @see Drupal\Core\Entity\EntityListController::render()
* @see \Drupal\Core\Entity\EntityListController::render()
*/
public function buildRow(EntityInterface $entity) {
$row['operations']['data'] = $this->buildOperations($entity);
@ -177,7 +177,7 @@ class EntityListController implements EntityListControllerInterface, EntityContr
* @return array
* A renderable array of operation links.
*
* @see Drupal\Core\Entity\EntityListController::render()
* @see \Drupal\Core\Entity\EntityListController::render()
*/
public function buildOperations(EntityInterface $entity) {
// Retrieve and sort operations.

View File

@ -62,8 +62,8 @@ interface QueryInterface extends AlterableInterface {
* Language code (optional).
*
* @return \Drupal\Core\Entity\Query\QueryInterface
* @see Drupal\Core\Entity\Query\andConditionGroup
* @see Drupal\Core\Entity\Query\orConditionGroup
* @see \Drupal\Core\Entity\Query\andConditionGroup
* @see \Drupal\Core\Entity\Query\orConditionGroup
*/
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL);

View File

@ -76,7 +76,7 @@ abstract class FileTransfer {
* @return object
* New instance of the appropriate FileTransfer subclass.
*
* @throws Drupal\Core\FileTransfer\FileTransferException
* @throws \Drupal\Core\FileTransfer\FileTransferException
*/
static function factory($jail, $settings) {
throw new FileTransferException('FileTransfer::factory() static method not overridden by FileTransfer subclass.');
@ -137,7 +137,7 @@ abstract class FileTransfer {
* @param bool $recursive
* Pass TRUE to recursively chmod the entire directory specified in $path.
*
* @throws Drupal\Core\FileTransfer\FileTransferException
* @throws \Drupal\Core\FileTransfer\FileTransferException
*
* @see http://php.net/chmod
*/
@ -208,7 +208,7 @@ abstract class FileTransfer {
* @param string $path
* A path to check against the jail.
*
* @throws Drupal\Core\FileTransfer\FileTransferException
* @throws \Drupal\Core\FileTransfer\FileTransferException
*/
protected final function checkPath($path) {
$full_jail = $this->chroot . $this->jail;

View File

@ -22,7 +22,7 @@ class DatabaseStorageExpirable extends DatabaseStorage implements KeyValueStoreE
/**
* The connection object for this storage.
*
* @var Drupal\Core\Database\Connection
* @var \Drupal\Core\Database\Connection
*/
protected $connection;

View File

@ -25,7 +25,7 @@ class PathProcessorFront implements InboundPathProcessorInterface, OutboundPathP
/**
* Constructs a PathProcessorFront object.
*
* @param Drupal\Core\Config\ConfigFactory $config
* @param \Drupal\Core\Config\ConfigFactory $config
* A config factory for retrieving the site front page configuration.
*/
public function __construct(ConfigFactory $config) {

View File

@ -54,7 +54,7 @@ class CacheDecorator implements CachedDiscoveryInterface {
/**
* The Discovery object being decorated.
*
* @var Drupal\Component\Plugin\Discovery\DiscoveryInterface
* @var \Drupal\Component\Plugin\Discovery\DiscoveryInterface
*/
protected $decorated;
@ -63,7 +63,7 @@ class CacheDecorator implements CachedDiscoveryInterface {
*
* It uses the DiscoveryInterface object it should decorate.
*
* @param Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated
* @param \Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated
* The object implementing DiscoveryInterface that is being decorated.
* @param string $cache_key
* The cache identifier used for storage of the definition list.

View File

@ -17,7 +17,7 @@ class InfoHookDecorator implements DiscoveryInterface {
/**
* The Discovery object being decorated.
*
* @var Drupal\Component\Plugin\Discovery\DiscoveryInterface
* @var \Drupal\Component\Plugin\Discovery\DiscoveryInterface
*/
protected $decorated;
@ -31,7 +31,7 @@ class InfoHookDecorator implements DiscoveryInterface {
/**
* Constructs a InfoHookDecorator object.
*
* @param Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated
* @param \Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated
* The object implementing DiscoveryInterface that is being decorated.
* @param string $hook
* The name of the info hook to be invoked by this discovery instance.

View File

@ -25,7 +25,7 @@ class MatcherDumper implements MatcherDumperInterface {
/**
* The database connection to which to dump route information.
*
* @var Drupal\Core\Database\Connection
* @var \Drupal\Core\Database\Connection
*/
protected $connection;
@ -46,7 +46,7 @@ class MatcherDumper implements MatcherDumperInterface {
/**
* Construct the MatcherDumper.
*
* @param Drupal\Core\Database\Connection $connection
* @param \Drupal\Core\Database\Connection $connection
* The database connection which will be used to store the route
* information.
* @param string $table

View File

@ -23,7 +23,7 @@ class RouteProvider implements RouteProviderInterface {
/**
* The database connection from which to read route information.
*
* @var Drupal\Core\Database\Connection
* @var \Drupal\Core\Database\Connection
*/
protected $connection;

View File

@ -40,7 +40,7 @@ class PublicStream extends LocalStream {
$base_path = settings()->get('file_public_path', conf_path() . '/files');
if ($test_prefix = drupal_valid_test_ua()) {
// Append the testing suffix unless already given.
// @see Drupal\simpletest\WebTestBase::setUp()
// @see \Drupal\simpletest\WebTestBase::setUp()
if (strpos($base_path, '/simpletest/' . substr($test_prefix, 10)) === FALSE) {
return $base_path . '/simpletest/' . substr($test_prefix, 10);
}

View File

@ -25,7 +25,7 @@ use Drupal\Component\Utility\String;
* $attributes['class'][] = 'cat';
* @endcode
*
* @see Drupal\Core\Template\Attribute
* @see \Drupal\Core\Template\Attribute
*/
class AttributeArray extends AttributeValueBase implements \ArrayAccess, \IteratorAggregate {

View File

@ -26,7 +26,7 @@ use Drupal\Component\Utility\String;
* // produces <select>;
* @endcode
*
* @see Drupal\Core\Template\Attribute
* @see \Drupal\Core\Template\Attribute
*/
class AttributeBoolean extends AttributeValueBase {

View File

@ -22,7 +22,7 @@ use Drupal\Component\Utility\String;
* // Produces: <cat id="socks" style="background-color:white">.
* @endcode
*
* @see Drupal\Core\Template\Attribute
* @see \Drupal\Core\Template\Attribute
*/
class AttributeString extends AttributeValueBase {

View File

@ -12,7 +12,7 @@ use Drupal\Component\Utility\String;
/**
* Defines the base class for an attribute type.
*
* @see Drupal\Core\Template\Attribute
* @see \Drupal\Core\Template\Attribute
*/
abstract class AttributeValueBase {

View File

@ -24,7 +24,7 @@ interface AccessibleInterface {
* - update
* - delete
* Defaults to 'view'.
* @param Drupal\Core\Session\AccountInterface $account
* @param \Drupal\Core\Session\AccountInterface $account
* (optional) The user for which to check access, or NULL to check access
* for the current user. Defaults to NULL.
*

View File

@ -29,7 +29,7 @@ use Drupal\Component\Annotation\Plugin;
* items of a certain type may be specified using the 'list class' key.
*
* @see \Drupal::typedData()
* @see Drupal\Core\TypedData\TypedDataManager::create()
* @see \Drupal\Core\TypedData\TypedDataManager::create()
* @see hook_data_type_info_alter()
*
* @Annotation

View File

@ -50,7 +50,7 @@ abstract class TypedData implements TypedDataInterface, PluginInspectionInterfac
* (optional) The parent object of the data property, or NULL if it is the
* root of a typed data tree. Defaults to NULL.
*
* @see Drupal\Core\TypedData\TypedDataManager::create()
* @see \Drupal\Core\TypedData\TypedDataManager::create()
*/
public function __construct(array $definition, $name = NULL, TypedDataInterface $parent = NULL) {
$this->definition = $definition;

View File

@ -42,10 +42,10 @@ class Updater {
* @param string $source
* Directory of a Drupal project.
*
* @return Drupal\Core\Updater\Updater
* @return \Drupal\Core\Updater\Updater
* A new Drupal\Core\Updater\Updater object.
*
* @throws Drupal\Core\Updater\UpdaterException
* @throws \Drupal\Core\Updater\UpdaterException
*/
public static function factory($source) {
if (is_dir($source)) {
@ -66,7 +66,7 @@ class Updater {
* @return string
* The class name which can work with this project type.
*
* @throws Drupal\Core\Updater\UpdaterException
* @throws \Drupal\Core\Updater\UpdaterException
*/
public static function getUpdaterFromDirectory($directory) {
// Gets a list of possible implementing classes.
@ -133,7 +133,7 @@ class Updater {
* @return string
* The title of the project.
*
* @throws Drupal\Core\Updater\UpdaterException
* @throws \Drupal\Core\Updater\UpdaterException
*/
public static function getProjectTitle($directory) {
$info_file = self::findInfoFile($directory);
@ -168,7 +168,7 @@ class Updater {
/**
* Updates a Drupal project and returns a list of next actions.
*
* @param Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* @param \Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* Object that is a child of FileTransfer. Used for moving files
* to the server.
* @param array $overrides
@ -177,8 +177,8 @@ class Updater {
* @return array
* An array of links which the user may need to complete the update
*
* @throws Drupal\Core\Updater\UpdaterException
* @throws Drupal\Core\Updater\UpdaterFileTransferException
* @throws \Drupal\Core\Updater\UpdaterException
* @throws \Drupal\Core\Updater\UpdaterFileTransferException
*/
public function update(&$filetransfer, $overrides = array()) {
try {
@ -227,7 +227,7 @@ class Updater {
/**
* Installs a Drupal project, returns a list of next actions.
*
* @param Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* @param \Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* Object that is a child of FileTransfer.
* @param array $overrides
* An array of settings to override defaults; see self::getInstallArgs().
@ -235,7 +235,7 @@ class Updater {
* @return array
* An array of links which the user may need to complete the install.
*
* @throws Drupal\Core\Updater\UpdaterFileTransferException
* @throws \Drupal\Core\Updater\UpdaterFileTransferException
*/
public function install(&$filetransfer, $overrides = array()) {
try {
@ -265,12 +265,12 @@ class Updater {
/**
* Makes sure the installation parent directory exists and is writable.
*
* @param Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* @param \Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* Object which is a child of FileTransfer.
* @param string $directory
* The installation directory to prepare.
*
* @throws Drupal\Core\Updater\UpdaterException
* @throws \Drupal\Core\Updater\UpdaterException
*/
public function prepareInstallDirectory(&$filetransfer, $directory) {
// Make the parent dir writable if need be and create the dir.
@ -310,7 +310,7 @@ class Updater {
/**
* Ensures that a given directory is world readable.
*
* @param Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* @param \Drupal\Core\FileTransfer\FileTransferInterface $filetransfer
* Object which is a child of FileTransfer.
* @param string $path
* The file path to make world readable.

View File

@ -111,7 +111,7 @@ class FeedFormController extends ContentEntityFormController {
$insert = (bool) $feed->id();
if (!empty($form_state['values']['category'])) {
// Store category values for post save operations.
// @see Drupal\Core\Entity\FeedStorageController::postSave()
// @see \Drupal\Core\Entity\FeedStorageController::postSave()
$feed->categories = $form_state['values']['category'];
}
$feed->save();

View File

@ -22,14 +22,14 @@ class BanSubscriber implements EventSubscriberInterface {
/**
* The manager used to check the IP against.
*
* @var Drupal\ban\BanIpManager
* @var \Drupal\ban\BanIpManager
*/
protected $manager;
/**
* Construct the BanSubscriber.
*
* @param Drupal\ban\BanIpManager $manager
* @param \Drupal\ban\BanIpManager $manager
* The manager used to check the IP against.
*/
public function __construct(BanIpManager $manager) {

View File

@ -59,7 +59,7 @@ abstract class CustomBlockTestBase extends WebTestBase {
* @param string $bundle
* (optional) Bundle name. Defaults to 'basic'.
*
* @return Drupal\custom_block\Entity\CustomBlock
* @return \Drupal\custom_block\Entity\CustomBlock
* Created custom block.
*/
protected function createCustomBlock($title = FALSE, $bundle = 'basic') {
@ -80,7 +80,7 @@ abstract class CustomBlockTestBase extends WebTestBase {
* @param string $label
* The block type label.
*
* @return Drupal\custom_block\Entity\CustomBlockType
* @return \Drupal\custom_block\Entity\CustomBlockType
* Created custom block type.
*/
protected function createCustomBlockType($label) {

View File

@ -77,7 +77,7 @@ class CustomBlockTranslationUITest extends ContentTranslationUITest {
* (optional) Bundle name. When no value is given, defaults to
* $this->bundle. Defaults to FALSE.
*
* @return Drupal\custom_block\Entity\CustomBlock
* @return \Drupal\custom_block\Entity\CustomBlock
* Created custom block.
*/
protected function createCustomBlock($title = FALSE, $bundle = FALSE) {

View File

@ -364,7 +364,7 @@ function breakpoint_select_options() {
* @param string $source_type
* Either Breakpoint::SOURCE_TYPE_THEME or Breakpoint::SOURCE_TYPE_MODULE.
*
* @return Drupal\breakpoint\Entity\BreakpointGroup
* @return \Drupal\breakpoint\Entity\BreakpointGroup
*
* @see _breakpoint_import_media_queries()
* @see _breakpoint_import_breakpoint_groups()

View File

@ -68,7 +68,7 @@ class BreakpointGroup extends ConfigEntityBase implements BreakpointGroupInterfa
* @var array
* Array containing all breakpoints of this group.
*
* @see Drupal\breakpoint\Entity\Breakpoint
* @see \Drupal\breakpoint\Entity\Breakpoint
*/
public $breakpoints = array();
@ -89,7 +89,7 @@ class BreakpointGroup extends ConfigEntityBase implements BreakpointGroupInterfa
* Breakpoint::SOURCE_TYPE_MODULE
* Breakpoint::SOURCE_TYPE_USER_DEFINED
*
* @see Drupal\breakpoint\Entity\Breakpoint
* @see \Drupal\breakpoint\Entity\Breakpoint
*/
public $sourceType = Breakpoint::SOURCE_TYPE_USER_DEFINED;

View File

@ -54,7 +54,7 @@ Drupal.behaviors.ckeditorStylesComboSettings = {
/**
* Builds the "stylesSet" configuration part of the CKEditor JS settings.
*
* @see Drupal\ckeditor\Plugin\ckeditor\plugin\StylesCombo::generateStylesSetSetting()
* @see \Drupal\ckeditor\Plugin\ckeditor\plugin\StylesCombo::generateStylesSetSetting()
*
* Note that this is a more forgiving implementation than the PHP version: the
* parsing works identically, but instead of failing on invalid styles, we

View File

@ -18,7 +18,7 @@ use Drupal\Core\Entity\EntityInterface;
* This hook is invoked from $comment->save() before the comment is saved to the
* database.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment object.
*/
function hook_comment_presave(Drupal\comment\Comment $comment) {
@ -29,7 +29,7 @@ function hook_comment_presave(Drupal\comment\Comment $comment) {
/**
* Respond to creation of a new comment.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment object.
*/
function hook_comment_insert(Drupal\comment\Comment $comment) {
@ -42,7 +42,7 @@ function hook_comment_insert(Drupal\comment\Comment $comment) {
/**
* Respond to updates to a comment.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment object.
*/
function hook_comment_update(Drupal\comment\Comment $comment) {
@ -144,7 +144,7 @@ function hook_comment_view_alter(&$build, \Drupal\comment\Entity\Comment $commen
/**
* Respond to a comment being published by a moderator.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment the action is being performed on.
*/
function hook_comment_publish(Drupal\comment\Comment $comment) {
@ -154,7 +154,7 @@ function hook_comment_publish(Drupal\comment\Comment $comment) {
/**
* Respond to a comment being unpublished by a moderator.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment the action is being performed on.
*/
function hook_comment_unpublish(Drupal\comment\Comment $comment) {
@ -167,7 +167,7 @@ function hook_comment_unpublish(Drupal\comment\Comment $comment) {
* This hook is invoked from entity_delete_multiple() before field values are
* deleted and before the comment is actually removed from the database.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment object for the comment that is about to be deleted.
*
* @see hook_comment_delete()
@ -186,7 +186,7 @@ function hook_comment_predelete(Drupal\comment\Comment $comment) {
* This hook is invoked from entity_delete_multiple() after field values are
* deleted and after the comment has been removed from the database.
*
* @param Drupal\comment\Comment $comment
* @param \Drupal\comment\Comment $comment
* The comment object for the comment that has been deleted.
*
* @see hook_comment_predelete()

View File

@ -1228,7 +1228,7 @@ function comment_user_predelete($account) {
* An array of comment objects, indexed by comment ID.
*
* @see entity_load()
* @see Drupal\Core\Entity\Query\QueryInterface
* @see \Drupal\Core\Entity\Query\QueryInterface
*/
function comment_load_multiple(array $cids = NULL, $reset = FALSE) {
return entity_load_multiple('comment', $cids, $reset);

View File

@ -179,7 +179,7 @@ class CommentLinksTest extends CommentTestBase {
user_role_change_permissions($rid, $perms);
// Output verbose debugging information.
// @see Drupal\simpletest\TestBase::error()
// @see \Drupal\simpletest\TestBase::error()
$t_form = array(
COMMENT_FORM_BELOW => 'below',
COMMENT_FORM_SEPARATE_PAGE => 'separate page',

View File

@ -50,7 +50,7 @@ class DefaultViewRecentComments extends ViewTestBase {
/**
* Contains the node object used for comments of this test.
*
* @var Drupal\node\Node
* @var \Drupal\node\Node
*/
public $node;

View File

@ -12,7 +12,7 @@ use Drupal\views\Tests\Wizard\WizardTestBase;
/**
* Tests the comment module integration into the wizard.
*
* @see Drupal\comment\Plugin\views\wizard\Comment
* @see \Drupal\comment\Plugin\views\wizard\Comment
*/
class WizardTest extends WizardTestBase {

View File

@ -13,7 +13,7 @@ use Drupal\Component\Utility\String;
/**
* Page callback: Presents the site-wide contact form.
*
* @param Drupal\contact\Entity\Category $category
* @param \Drupal\contact\Entity\Category $category
* (optional) The contact category to use.
*
* @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException

View File

@ -74,7 +74,7 @@ class EditController extends ContainerAware implements ContainerInjectionInterfa
* The TempStore factory.
* @param \Drupal\edit\MetadataGeneratorInterface $metadata_generator
* The in-place editing metadata generator.
* @param Drupal\edit\EditorSelectorInterface $editor_selector
* @param \Drupal\edit\EditorSelectorInterface $editor_selector
* The in-place editor selector.
* @param \Drupal\Core\Entity\EntityManager $entity_manager
* The entity manager.

View File

@ -503,7 +503,7 @@ function _editor_record_file_usage(array $uuids, EntityInterface $entity) {
* The number of references to delete. Should be 1 when deleting a single
* revision and 0 when deleting an entity entirely.
*
* @see Drupal\file\FileUsage\FileUsageInterface::delete()
* @see \Drupal\file\FileUsage\FileUsageInterface::delete()
*/
function _editor_delete_file_usage(array $uuids, EntityInterface $entity, $count) {
foreach ($uuids as $uuid) {

View File

@ -65,7 +65,7 @@ use Drupal\entity\Entity\EntityFormDisplay;
* @param callable $target_function
* A function that receives an $instance object and returns the object on
* which the method should be invoked.
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The fully formed $entity_type entity.
* @param mixed $a
* (optional) A parameter for the invoked method. Defaults to NULL.

View File

@ -48,7 +48,7 @@ interface PluginSettingsInterface extends PluginInspectionInterface {
* The array of settings, keyed by setting names. Missing settings will be
* assigned their default values.
*
* @return Drupal\field\Plugin\PluginSettingsInterface
* @return \Drupal\field\Plugin\PluginSettingsInterface
* The plugin itself.
*/
public function setSettings(array $settings);
@ -61,7 +61,7 @@ interface PluginSettingsInterface extends PluginInspectionInterface {
* @param mixed $value
* The setting value.
*
* @return Drupal\field\Plugin\PluginSettingsInterface
* @return \Drupal\field\Plugin\PluginSettingsInterface
* The plugin itself.
*/
public function setSetting($key, $value);

View File

@ -69,7 +69,7 @@ interface FormatterInterface extends PluginSettingsInterface {
/**
* Builds a renderable array for one field on one entity instance.
*
* @param Drupal\Core\Entity\Field\FieldItemListInterface $items
* @param \Drupal\Core\Entity\Field\FieldItemListInterface $items
* The field values to be rendered.
*
* @return array
@ -80,7 +80,7 @@ interface FormatterInterface extends PluginSettingsInterface {
/**
* Builds a renderable array for a field value.
*
* @param Drupal\Core\Entity\Field\FieldItemListInterface $items
* @param \Drupal\Core\Entity\Field\FieldItemListInterface $items
* The field values to be rendered.
*
* @return array

View File

@ -173,7 +173,7 @@ function field_test_field_widget_form_alter(&$element, &$form_state, $context) {
/**
* Implements hook_query_TAG_alter() for tag 'efq_table_prefixing_test'.
*
* @see Drupal\system\Tests\Entity\EntityFieldQueryTest::testTablePrefixing()
* @see \Drupal\system\Tests\Entity\EntityFieldQueryTest::testTablePrefixing()
*/
function field_test_query_efq_table_prefixing_test_alter(&$query) {
// Add an additional join onto the entity base table. This will cause an
@ -185,7 +185,7 @@ function field_test_query_efq_table_prefixing_test_alter(&$query) {
/**
* Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.
*
* @see Drupal\system\Tests\Entity\EntityQueryTest::testMetaData()
* @see \Drupal\system\Tests\Entity\EntityQueryTest::testMetaData()
*/
function field_test_query_efq_metadata_test_alter(&$query) {
global $efq_test_metadata;

View File

@ -306,7 +306,7 @@ class FieldOverview extends OverviewBase {
* @param array $form_state
* A reference to a keyed array containing the current state of the form.
*
* @see Drupal\field_ui\FieldOverview::validateForm()
* @see \Drupal\field_ui\FieldOverview::validateForm()
*/
protected function validateAddNew(array $form, array &$form_state) {
$field = $form_state['values']['fields']['_add_new_field'];
@ -346,7 +346,7 @@ class FieldOverview extends OverviewBase {
* @param array $form_state
* A reference to a keyed array containing the current state of the form.
*
* @see Drupal\field_ui\FieldOverview::validate()
* @see \Drupal\field_ui\FieldOverview::validate()
*/
protected function validateAddExisting(array $form, array &$form_state) {
// The form element might be absent if no existing fields can be added to

View File

@ -172,7 +172,7 @@ function hook_file_move(Drupal\file\FileInterface $file, Drupal\file\FileInterfa
* The file that is about to be deleted.
*
* @see hook_file_delete()
* @see Drupal\file\FileStorageController::delete()
* @see \Drupal\file\FileStorageController::delete()
* @see upload_file_delete()
*/
function hook_file_predelete(Drupal\file\FileInterface $file) {
@ -190,7 +190,7 @@ function hook_file_predelete(Drupal\file\FileInterface $file) {
* The file that has just been deleted.
*
* @see hook_file_predelete()
* @see Drupal\file\FileStorageController::delete()
* @see \Drupal\file\FileStorageController::delete()
*/
function hook_file_delete(Drupal\file\FileInterface $file) {
// Delete all information associated with the file.

View File

@ -94,7 +94,7 @@ function file_element_info() {
* @see hook_file_load()
* @see file_load()
* @see entity_load()
* @see Drupal\Core\Entity\Query\EntityQueryInterface
* @see \Drupal\Core\Entity\Query\EntityQueryInterface
*/
function file_load_multiple(array $fids = NULL, $reset = FALSE) {
return entity_load_multiple('file', $fids, $reset);
@ -121,7 +121,7 @@ function file_load($fid, $reset = FALSE) {
/**
* Returns the file usage service.
*
* @return Drupal\file\FileUsage\FileUsageInterface.
* @return \Drupal\file\FileUsage\FileUsageInterface.
*/
function file_usage() {
return \Drupal::service('file.usage');
@ -142,7 +142,7 @@ function file_usage() {
* temporary file, the resulting file will also be a temporary file. See
* file_save_upload() for details on temporary files.
*
* @param Drupal\file\File $source
* @param \Drupal\file\File $source
* A file entity.
* @param $destination
* A string containing the destination that $source should be copied to.
@ -214,7 +214,7 @@ function file_copy(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
* replace the file or rename the file based on the $replace parameter.
* - Adds the new file to the files database.
*
* @param Drupal\file\File $source
* @param \Drupal\file\File $source
* A file entity.
* @param $destination
* A string containing the destination that $source should be moved to.
@ -230,7 +230,7 @@ function file_copy(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
* unique.
* - FILE_EXISTS_ERROR - Do nothing and return FALSE.
*
* @return Drupal\file\File
* @return \Drupal\file\File
* Resulting file entity for success, or FALSE in the event of an error.
*
* @see file_unmanaged_move()
@ -289,7 +289,7 @@ function file_move(File $source, $destination = NULL, $replace = FILE_EXISTS_REN
* After executing the validator callbacks specified hook_file_validate() will
* also be called to allow other modules to report errors about the file.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param $validators
* An optional, associative array of callback functions used to validate the
@ -321,7 +321,7 @@ function file_validate(File $file, $validators = array()) {
/**
* Checks for files with names longer than can be stored in the database.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
*
* @return
@ -342,7 +342,7 @@ function file_validate_name_length(File $file) {
/**
* Checks that the filename ends with an allowed extension.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param $extensions
* A string with a space separated list of allowed extensions.
@ -366,7 +366,7 @@ function file_validate_extensions(File $file, $extensions) {
/**
* Checks that the file's size is below certain limits.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param $file_limit
* An integer specifying the maximum file size in bytes. Zero indicates that
@ -400,7 +400,7 @@ function file_validate_size(File $file, $file_limit = 0, $user_limit = 0) {
/**
* Checks that the file is recognized by Image::getInfo() as an image.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
*
* @return
@ -430,7 +430,7 @@ function file_validate_is_image(File $file) {
* Non-image files will be ignored. If a image toolkit is available the image
* will be scaled to fit within the desired maximum dimensions.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity. This function may resize the file affecting its size.
* @param $maximum_dimensions
* An optional string in the form WIDTHxHEIGHT e.g. '640x480' or '85x85'. If
@ -550,7 +550,7 @@ function file_save_data($data, $destination = NULL, $replace = FILE_EXISTS_RENAM
/**
* Examines a file entity and returns appropriate content headers for download.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
*
* @return
@ -1620,7 +1620,7 @@ function theme_file_icon($variables) {
/**
* Creates a URL to the icon for a file entity.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param $icon_directory
* (optional) A path to a directory of icons to be used for files. Defaults to
@ -1639,7 +1639,7 @@ function file_icon_url(File $file, $icon_directory = NULL) {
/**
* Creates a path to the icon for a file entity.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param $icon_directory
* (optional) A path to a directory of icons to be used for files. Defaults to
@ -1692,7 +1692,7 @@ function file_icon_path(File $file, $icon_directory = NULL) {
/**
* Determines the generic icon MIME package based on a file's MIME type.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
*
* @return
@ -1824,7 +1824,7 @@ function file_icon_map(File $file) {
/**
* Retrieves a list of references to a file.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param $field
* (optional) A field array to be used for this check. If given, limits the

View File

@ -19,7 +19,7 @@ class DatabaseFileUsageBackend extends FileUsageBase {
/**
* The database connection used to store file usage information.
*
* @var Drupal\Core\Database\Connection
* @var \Drupal\Core\Database\Connection
*/
protected $connection;
@ -33,7 +33,7 @@ class DatabaseFileUsageBackend extends FileUsageBase {
/**
* Construct the DatabaseFileUsageBackend.
*
* @param Drupal\Core\Database\Connection $connection
* @param \Drupal\Core\Database\Connection $connection
* The database connection which will be used to store the file usage
* information.
* @param string $table

View File

@ -24,7 +24,7 @@ interface FileUsageInterface {
* - The User module associates an image with a user, so $type would be 'user'
* and the $id would be the user's uid.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param string $module
* The name of the module using the file.
@ -40,7 +40,7 @@ interface FileUsageInterface {
/**
* Removes a record to indicate that a module is no longer using a file.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
* @param string $module
* The name of the module using the file.
@ -62,7 +62,7 @@ interface FileUsageInterface {
/**
* Determines where a file is used.
*
* @param Drupal\file\File $file
* @param \Drupal\file\File $file
* A file entity.
*
* @return array

View File

@ -42,7 +42,7 @@ class LanguageDependencyInjectionTest extends WebTestBase {
/**
* Test dependency injected languages against a new Language object.
*
* @see Drupal\Core\Language\Language
* @see \Drupal\Core\Language\Language
*/
function testDependencyInjectedNewLanguage() {
// Initialize the language system.
@ -59,7 +59,7 @@ class LanguageDependencyInjectionTest extends WebTestBase {
* Test dependency injected Language object against a new default language
* object.
*
* @see Drupal\Core\Language\Language
* @see \Drupal\Core\Language\Language
*/
function testDependencyInjectedNewDefaultLanguage() {
// Change the language default object to different values.

View File

@ -12,7 +12,7 @@ use Drupal\Core\Language\Language;
/**
* Tests the argument language handler.
*
* @see Drupal\language\Plugin\views\argument\Language.php
* @see \Drupal\language\Plugin\views\argument\Language.php
*/
class ArgumentLanguageTest extends LanguageTestBase {

View File

@ -12,7 +12,7 @@ use Drupal\Core\Language\Language;
/**
* Tests the field language handler.
*
* @see Drupal\language\Plugin\views\field\Language
* @see \Drupal\language\Plugin\views\field\Language
*/
class FieldLanguageTest extends LanguageTestBase {

View File

@ -12,7 +12,7 @@ use Drupal\Core\Language\Language;
/**
* Tests the filter language handler.
*
* @see Drupal\language\Plugin\views\filter\Language
* @see \Drupal\language\Plugin\views\filter\Language
*/
class FilterLanguageTest extends LanguageTestBase {

View File

@ -44,7 +44,7 @@ class Gettext {
* @return array
* Report array as defined in Drupal\locale\PoDatabaseWriter.
*
* @see Drupal\locale\PoDatabaseWriter
* @see \Drupal\locale\PoDatabaseWriter
*/
static function fileToDatabase($file, $options) {
// Add the default values to the options array.

View File

@ -45,7 +45,7 @@ class PoDatabaseWriter implements PoWriterInterface {
/**
* Header of the po file written to the database.
*
* @var Drupal\Component\Gettext\PoHeader
* @var \Drupal\Component\Gettext\PoHeader
*/
private $_header;
@ -148,7 +148,7 @@ class PoDatabaseWriter implements PoWriterInterface {
*
* A langcode is required to set the current header's PluralForm.
*
* @param Drupal\Component\Gettext\PoHeader $header
* @param \Drupal\Component\Gettext\PoHeader $header
* Header metadata.
*
* @throws Exception
@ -209,7 +209,7 @@ class PoDatabaseWriter implements PoWriterInterface {
/**
* Imports one string into the database.
*
* @param Drupal\Component\Gettext\PoItem $item
* @param \Drupal\Component\Gettext\PoItem $item
* The item being imported.
*
* @return int

View File

@ -52,7 +52,7 @@ abstract class StringBase implements StringInterface {
/**
* The locale storage this string comes from or is to be saved to.
*
* @var Drupal\locale\StringStorageInterface
* @var \Drupal\locale\StringStorageInterface
*/
protected $storage;

View File

@ -20,7 +20,7 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* The database connection.
*
* @var Drupal\Core\Database\Connection
* @var \Drupal\Core\Database\Connection
*/
protected $connection;
@ -34,7 +34,7 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Constructs a new StringStorage controller.
*
* @param Drupal\Core\Database\Connection $connection
* @param \Drupal\Core\Database\Connection $connection
* A Database connection to use for reading and writing configuration data.
* @param array $options
* (optional) Any additional database connection options to use in queries.
@ -138,7 +138,7 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Update locations for string.
*
* @param Drupal\locale\StringInterface $string
* @param \Drupal\locale\StringInterface $string
* The string object.
*/
protected function updateLocation($string) {
@ -173,7 +173,7 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Checks whether the string version matches a given version, fix it if not.
*
* @param Drupal\locale\StringInterface $string
* @param \Drupal\locale\StringInterface $string
* The string object.
* @param string $version
* Drupal version to check against.
@ -269,7 +269,7 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Gets table name for storing string object.
*
* @param Drupal\locale\StringInterface $string
* @param \Drupal\locale\StringInterface $string
* The string object.
*
* @return string
@ -287,7 +287,7 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Gets keys values that are in a database table.
*
* @param Drupal\locale\StringInterface $string
* @param \Drupal\locale\StringInterface $string
* The string object.
*
* @return array
@ -453,14 +453,14 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Createds a database record for a string object.
*
* @param Drupal\locale\StringInterface $string
* @param \Drupal\locale\StringInterface $string
* The string object.
*
* @return bool|int
* If the operation failed, returns FALSE.
* If it succeeded returns the last insert ID of the query, if one exists.
*
* @throws Drupal\locale\StringStorageException
* @throws \Drupal\locale\StringStorageException
* If the string is not suitable for this storage, an exception ithrown.
*/
protected function dbStringInsert($string) {
@ -487,14 +487,14 @@ class StringDatabaseStorage implements StringStorageInterface {
/**
* Updates string object in the database.
*
* @param Drupal\locale\StringInterface $string
* @param \Drupal\locale\StringInterface $string
* The string object.
*
* @return bool|int
* If the record update failed, returns FALSE. If it succeeded, returns
* SAVED_NEW or SAVED_UPDATED.
*
* @throws Drupal\locale\StringStorageException
* @throws \Drupal\locale\StringStorageException
* If the string is not suitable for this storage, an exception is thrown.
*/
protected function dbStringUpdate($string) {

View File

@ -26,7 +26,7 @@ interface StringInterface {
* @param int $id
* The string identifier.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function setId($id);
@ -45,7 +45,7 @@ interface StringInterface {
* @param string $version
* Version identifier.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function setVersion($version);
@ -64,7 +64,7 @@ interface StringInterface {
* @param string $string
* String to set as value.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function setString($string);
@ -85,7 +85,7 @@ interface StringInterface {
* @param array $plurals
* Array of strings with plural variants.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function setPlurals($plurals);
@ -93,7 +93,7 @@ interface StringInterface {
/**
* Gets the string storage.
*
* @return Drupal\locale\StringStorageInterface
* @return \Drupal\locale\StringStorageInterface
* The storage used for this string.
*/
public function getStorage();
@ -101,10 +101,10 @@ interface StringInterface {
/**
* Sets the string storage.
*
* @param Drupal\locale\StringStorageInterface $storage
* @param \Drupal\locale\StringStorageInterface $storage
* The storage to use for this string.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function setStorage($storage);
@ -141,7 +141,7 @@ interface StringInterface {
* @param bool $override
* (optional) Whether to override already set fields, defaults to TRUE.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function setValues(array $values, $override = TRUE);
@ -187,7 +187,7 @@ interface StringInterface {
* file path in case of imported strings, configuration name for strings
* that come from configuration, etc...
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*/
public function addLocation($type, $name);
@ -208,10 +208,10 @@ interface StringInterface {
/**
* Saves string object to storage.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*
* @throws Drupal\locale\StringStorageException
* @throws \Drupal\locale\StringStorageException
* In case of failures, an exception is thrown.
*/
public function save();
@ -219,10 +219,10 @@ interface StringInterface {
/**
* Deletes string object from storage.
*
* @return Drupal\locale\LocaleString
* @return \Drupal\locale\LocaleString
* The called object.
*
* @throws Drupal\locale\StringStorageException
* @throws \Drupal\locale\StringStorageException
* In case of failures, an exception is thrown.
*/
public function delete();

View File

@ -27,7 +27,7 @@ class LocaleStringTest extends WebTestBase {
/**
* The locale storage.
*
* @var Drupal\locale\StringStorageInterface
* @var \Drupal\locale\StringStorageInterface
*/
protected $storage;

View File

@ -63,7 +63,7 @@ class TranslationString extends StringBase {
* @param bool $customized
* (optional) Whether the string is customized or not. Defaults to TRUE.
*
* @return Drupal\locale\TranslationString
* @return \Drupal\locale\TranslationString
* The called object.
*/
public function setCustomized($customized = TRUE) {

View File

@ -253,7 +253,7 @@ class MenuLinkStorageController extends DatabaseStorageController implements Men
if (!empty($this->entityInfo['class'])) {
// We provide the necessary arguments for PDO to create objects of the
// specified entity class.
// @see Drupal\Core\Entity\EntityInterface::__construct()
// @see \Drupal\Core\Entity\EntityInterface::__construct()
$query_result->setFetchMode(\PDO::FETCH_CLASS, $this->entityInfo['class'], array(array(), $this->entityType));
}

View File

@ -542,7 +542,7 @@ function hook_node_load($nodes, $types) {
* the default home page at path 'node', a recent content block, etc.) See
* @link node_access Node access rights @endlink for a full explanation.
*
* @param Drupal\Core\Entity\EntityInterface|string $node
* @param \Drupal\Core\Entity\EntityInterface|string $node
* Either a node entity or the machine name of the content type on which to
* perform the access check.
* @param string $op

View File

@ -515,7 +515,7 @@ function node_type_update_nodes($old_id, $new_id) {
* An array of node entities indexed by nid.
*
* @see entity_load_multiple()
* @see Drupal\Core\Entity\Query\EntityQueryInterface
* @see \Drupal\Core\Entity\Query\EntityQueryInterface
*/
function node_load_multiple(array $nids = NULL, $reset = FALSE) {
return entity_load_multiple('node', $nids, $reset);
@ -1600,7 +1600,7 @@ function node_form_system_themes_admin_form_submit($form, &$form_state) {
* - "update"
* - "delete"
* - "create"
* @param Drupal\Core\Entity\EntityInterface|string|stdClass $node
* @param \Drupal\Core\Entity\EntityInterface|string|stdClass $node
* The node entity on which the operation is to be performed, or the node type
* object, or node type string (e.g., 'forum') for the 'create' operation.
* @param $account

View File

@ -28,7 +28,7 @@ class Search extends FilterPluginBase {
* This value extends the query extender to be able to provide methods
* which returns the protected values.
*
* @var Drupal\search\ViewsSearchQuery
* @var \Drupal\search\ViewsSearchQuery
*/
var $search_query = NULL;

View File

@ -64,7 +64,7 @@ class ViewsSearchQuery extends SearchQuery {
* The searched value.
* @param string $replace
* The value which replaces the search value.
* @param Drupal\Core\Database\Query\Condition $condition
* @param \Drupal\Core\Database\Query\Condition $condition
* The query condition in which the string is replaced.
*/
function condition_replace_string($search, $replace, &$condition) {

View File

@ -22,7 +22,7 @@ class SerializationTestEncoder implements EncoderInterface {
* Implements \Symfony\Component\Serializer\Encoder\EncoderInterface::encode().
*/
public function encode($data, $format, array $context = array()) {
// @see Drupal\serialization_test\SerializationTestNormalizer::normalize().
// @see \Drupal\serialization_test\SerializationTestNormalizer::normalize().
return 'Normalized by ' . $data['normalized_by'] . ', Encoded by SerializationTestEncoder';
}

View File

@ -25,8 +25,8 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* Additional modules needed in a test may be loaded and added to the fixed
* module list.
*
* @see DrupalUnitTestBase::$modules
* @see DrupalUnitTestBase::enableModules()
* @see \DrupalUnitTestBase::$modules
* @see \DrupalUnitTestBase::enableModules()
*/
abstract class DrupalUnitTestBase extends UnitTestBase {
@ -44,8 +44,8 @@ abstract class DrupalUnitTestBase extends UnitTestBase {
* Unlike WebTestBase::setUp(), the specified modules are loaded only, but not
* automatically installed. Modules need to be installed manually, if needed.
*
* @see DrupalUnitTestBase::enableModules()
* @see DrupalUnitTestBase::setUp()
* @see \DrupalUnitTestBase::enableModules()
* @see \DrupalUnitTestBase::setUp()
*
* @var array
*/
@ -73,8 +73,8 @@ abstract class DrupalUnitTestBase extends UnitTestBase {
/**
* Sets up Drupal unit test environment.
*
* @see DrupalUnitTestBase::$modules
* @see DrupalUnitTestBase
* @see \DrupalUnitTestBase::$modules
* @see \DrupalUnitTestBase
*/
protected function setUp() {
// Copy/prime extension file lists once to avoid filesystem scans.
@ -136,9 +136,9 @@ abstract class DrupalUnitTestBase extends UnitTestBase {
* that need to persist a DrupalKernel reboot. This method is called whenever
* the kernel is rebuilt.
*
* @see DrupalUnitTestBase::setUp()
* @see DrupalUnitTestBase::enableModules()
* @see DrupalUnitTestBase::disableModules()
* @see \DrupalUnitTestBase::setUp()
* @see \DrupalUnitTestBase::enableModules()
* @see \DrupalUnitTestBase::disableModules()
*/
public function containerBuild(ContainerBuilder $container) {
global $conf;

View File

@ -278,7 +278,7 @@ function hook_entity_load($entities, $entity_type) {
/**
* Act on an entity before it is about to be created or updated.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object.
*/
function hook_entity_presave(Drupal\Core\Entity\EntityInterface $entity) {
@ -288,7 +288,7 @@ function hook_entity_presave(Drupal\Core\Entity\EntityInterface $entity) {
/**
* Act on entities when inserted.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object.
*/
function hook_entity_insert(Drupal\Core\Entity\EntityInterface $entity) {
@ -306,7 +306,7 @@ function hook_entity_insert(Drupal\Core\Entity\EntityInterface $entity) {
/**
* Act on entities when updated.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object.
*/
function hook_entity_update(Drupal\Core\Entity\EntityInterface $entity) {
@ -354,7 +354,7 @@ function hook_entity_translation_delete(\Drupal\Core\Entity\EntityInterface $tra
*
* This hook runs after the entity type-specific predelete hook.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object for the entity that is about to be deleted.
*/
function hook_entity_predelete(Drupal\Core\Entity\EntityInterface $entity) {
@ -383,7 +383,7 @@ function hook_entity_predelete(Drupal\Core\Entity\EntityInterface $entity) {
*
* This hook runs after the entity type-specific delete hook.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object for the entity that has been deleted.
*/
function hook_entity_delete(Drupal\Core\Entity\EntityInterface $entity) {
@ -399,7 +399,7 @@ function hook_entity_delete(Drupal\Core\Entity\EntityInterface $entity) {
*
* This hook runs after the entity type-specific revision delete hook.
*
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object for the entity revision that has been deleted.
*/
function hook_entity_revision_delete(Drupal\Core\Entity\EntityInterface $entity) {
@ -470,7 +470,7 @@ function hook_entity_view(\Drupal\Core\Entity\EntityInterface $entity, \Drupal\e
*
* @param $build
* A renderable array representing the entity content.
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity object being rendered.
* @param \Drupal\entity\Entity\EntityDisplay $display
* The entity_display object holding the display options configured for the
@ -535,7 +535,7 @@ function hook_entity_prepare_view($entity_type, array $entities, array $displays
*
* @param string $view_mode
* The view_mode that is to be used to display the entity.
* @param Drupal\Core\Entity\EntityInterface $entity
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity that is being viewed.
* @param array $context
* Array with additional context information, currently only contains the

Some files were not shown because too many files have changed in this diff Show More