Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
012438ae
Commit
012438ae
authored
Oct 25, 2019
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3089103
by kim.pepper, jibran: Properly deprecate \Drupal\views\Plugin\views\field\Field
(cherry picked from commit
735c9782
)
parent
770237b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/views/src/Plugin/views/field/Field.php
+18
-0
18 additions, 0 deletions
core/modules/views/src/Plugin/views/field/Field.php
with
18 additions
and
0 deletions
core/modules/views/src/Plugin/views/field/Field.php
+
18
−
0
View file @
012438ae
...
...
@@ -2,12 +2,30 @@
namespace
Drupal\views\Plugin\views\field
;
use
Drupal\Core\Entity\EntityFieldManagerInterface
;
use
Drupal\Core\Entity\EntityRepositoryInterface
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Field\FieldTypePluginManagerInterface
;
use
Drupal\Core\Field\FormatterPluginManager
;
use
Drupal\Core\Language\LanguageManagerInterface
;
use
Drupal\Core\Render\RendererInterface
;
/**
* A stub class to provide backward compatibility for EntityField.
*
* @deprecated in Drupal 8.3.x and will be removed before 9.0.0
* Use \Drupal\views\Plugin\views\field\EntityField instead.
*
* @see https://www.drupal.org/node/3089106
*/
class
Field
extends
EntityField
{
/**
* Field constructor.
*/
public
function
__construct
(
array
$configuration
,
$plugin_id
,
$plugin_definition
,
EntityTypeManagerInterface
$entity_type_manager
,
FormatterPluginManager
$formatter_plugin_manager
,
FieldTypePluginManagerInterface
$field_type_plugin_manager
,
LanguageManagerInterface
$language_manager
,
RendererInterface
$renderer
,
EntityRepositoryInterface
$entity_repository
=
NULL
,
EntityFieldManagerInterface
$entity_field_manager
=
NULL
)
{
parent
::
__construct
(
$configuration
,
$plugin_id
,
$plugin_definition
,
$entity_type_manager
,
$formatter_plugin_manager
,
$field_type_plugin_manager
,
$language_manager
,
$renderer
);
@
trigger_error
(
__CLASS__
.
' is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\views\Plugin\views\field\EntityField instead. See https://www.drupal.org/node/3089106'
,
E_USER_DEPRECATED
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment