Issue #3100251 by Hardik_Patel_12, longwave: Several code comments have incorrect namespaces for classes or interfaces they reference
parent
7a45330f42
commit
767d453d30
|
@ -57,7 +57,7 @@ use Drupal\node\Entity\NodeType;
|
|||
* hook are of the specific entity class, not the generic Entity class, so in
|
||||
* your implementation, you can make the $entity argument something like $node
|
||||
* and give it a specific type hint (which should normally be to the specific
|
||||
* interface, such as \Drupal\Node\NodeInterface for nodes).
|
||||
* interface, such as \Drupal\node\NodeInterface for nodes).
|
||||
* - $storage in the code examples is assumed to be an entity storage
|
||||
* class. See the @link entity_api Entity API topic @endlink for
|
||||
* information on how to instantiate the correct storage class for an
|
||||
|
@ -67,7 +67,7 @@ use Drupal\node\Entity\NodeType;
|
|||
* information on how to instantiate the correct view builder class for
|
||||
* an entity type.
|
||||
* - During many operations, static methods are called on the entity class,
|
||||
* which implements \Drupal\Entity\EntityInterface.
|
||||
* which implements \Drupal\Core\Entity\EntityInterface.
|
||||
*
|
||||
* @section entities_revisions_translations Entities, revisions and translations
|
||||
* A content entity can have multiple stored variants: based on its definition,
|
||||
|
|
|
@ -99,7 +99,7 @@ interface LanguageManagerInterface {
|
|||
* @param string $langcode
|
||||
* The language code.
|
||||
*
|
||||
* @return \Drupal\core\Language\LanguageInterface|null
|
||||
* @return \Drupal\Core\Language\LanguageInterface|null
|
||||
* A fully-populated language object or NULL.
|
||||
*/
|
||||
public function getLanguage($langcode);
|
||||
|
|
|
@ -349,7 +349,7 @@ class Internal extends CKEditorPluginBase implements ContainerFactoryPluginInter
|
|||
*/
|
||||
protected function generateFormatTagsSetting(Editor $editor) {
|
||||
// When no text format is associated yet, assume no tag is allowed.
|
||||
// @see \Drupal\Editor\EditorInterface::hasAssociatedFilterFormat()
|
||||
// @see \Drupal\editor\EditorInterface::hasAssociatedFilterFormat()
|
||||
if (!$editor->hasAssociatedFilterFormat()) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ interface ContactFormInterface extends ConfigEntityInterface {
|
|||
*
|
||||
* Empty redirect property results a url object of front page.
|
||||
*
|
||||
* @return \Drupal\core\Url
|
||||
* @return \Drupal\Core\Url
|
||||
* The redirect url object.
|
||||
*/
|
||||
public function getRedirectUrl();
|
||||
|
|
|
@ -25,7 +25,7 @@ class ForumListingBreadcrumbBuilder extends ForumBreadcrumbBuilderBase {
|
|||
$breadcrumb->addCacheContexts(['route']);
|
||||
|
||||
// Add all parent forums to breadcrumbs.
|
||||
/** @var \Drupal\Taxonomy\TermInterface $term */
|
||||
/** @var \Drupal\taxonomy\TermInterface $term */
|
||||
$term = $route_match->getParameter('taxonomy_term');
|
||||
$term_id = $term->id();
|
||||
$breadcrumb->addCacheableDependency($term);
|
||||
|
|
|
@ -30,7 +30,7 @@ class EntityImageStyle extends EntityConfigBase {
|
|||
$row->setDestinationProperty('effects', []);
|
||||
}
|
||||
|
||||
/** @var \Drupal\Image\Entity\ImageStyle $style */
|
||||
/** @var \Drupal\image\Entity\ImageStyle $style */
|
||||
$style = $this->getEntity($row, $old_destination_id_values);
|
||||
|
||||
// Iterate the effects array so each effect plugin can be initialized.
|
||||
|
|
|
@ -143,7 +143,7 @@ class MigrateEntityContentValidationTest extends KernelTestBase {
|
|||
/**
|
||||
* Reacts to map message event.
|
||||
*
|
||||
* @param \Drupal\Migrate\Event\MigrateIdMapMessageEvent $event
|
||||
* @param \Drupal\migrate\Event\MigrateIdMapMessageEvent $event
|
||||
* The migration event.
|
||||
*/
|
||||
public function mapMessageRecorder(MigrateIdMapMessageEvent $event) {
|
||||
|
|
|
@ -66,9 +66,9 @@ class EntityReferenceTranslationDeriver extends DeriverBase implements Container
|
|||
*
|
||||
* @param string $base_plugin_id
|
||||
* The base plugin ID.
|
||||
* @param \Drupal\core\Entity\EntityFieldManagerInterface $entity_field_manager
|
||||
* @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager
|
||||
* The entity field manager.
|
||||
* @param \Drupal\core\Entity\EntityTypeManagerInterface $entity_type_manager
|
||||
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
|
||||
* The entity type manager.
|
||||
*/
|
||||
public function __construct($base_plugin_id, EntityFieldManagerInterface $entity_field_manager, EntityTypeManagerInterface $entity_type_manager) {
|
||||
|
|
|
@ -33,7 +33,7 @@ class TermBreadcrumbBuilder implements BreadcrumbBuilderInterface {
|
|||
/**
|
||||
* The taxonomy storage.
|
||||
*
|
||||
* @var \Drupal\Taxonomy\TermStorageInterface
|
||||
* @var \Drupal\taxonomy\TermStorageInterface
|
||||
*/
|
||||
protected $termStorage;
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ class UserValidationTest extends KernelTestBase {
|
|||
/**
|
||||
* Verifies that a length violation exists for the given field.
|
||||
*
|
||||
* @param \Drupal\core\Entity\EntityInterface $entity
|
||||
* @param \Drupal\Core\Entity\EntityInterface $entity
|
||||
* The entity object to validate.
|
||||
* @param string $field_name
|
||||
* The field that violates the maximum length.
|
||||
|
@ -208,7 +208,7 @@ class UserValidationTest extends KernelTestBase {
|
|||
/**
|
||||
* Verifies that a AllowedValues violation exists for the given field.
|
||||
*
|
||||
* @param \Drupal\core\Entity\EntityInterface $entity
|
||||
* @param \Drupal\Core\Entity\EntityInterface $entity
|
||||
* The entity object to validate.
|
||||
* @param string $field_name
|
||||
* The name of the field to verify.
|
||||
|
|
|
@ -93,9 +93,9 @@ class NumberTest extends TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Data provider for \Drupal\Test\Component\Utility\NumberTest::testValidStepOffset().
|
||||
* Data provider for \Drupal\Tests\Component\Utility\NumberTest::testValidStepOffset().
|
||||
*
|
||||
* @see \Drupal\Test\Component\Utility\NumberTest::testValidStepOffset()
|
||||
* @see \Drupal\Tests\Component\Utility\NumberTest::testValidStepOffset()
|
||||
*/
|
||||
public static function providerTestValidStepOffset() {
|
||||
return [
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\Routing\Route;
|
|||
class EntityRevisionRouteEnhancerTest extends UnitTestCase {
|
||||
|
||||
/**
|
||||
* @var \Drupal\entity\RouteEnhancer\EntityRevisionRouteEnhancer
|
||||
* @var \Drupal\Core\Routing\RouteEnhancer\EntityRevisionRouteEnhancer
|
||||
*/
|
||||
protected $routeEnhancer;
|
||||
|
||||
|
|
Loading…
Reference in New Issue