Views field handler plugins
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\views_field_handlers
- 8.9.x core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\views_field_handlers
- 10 core/modules/views/src/Plugin/views/field/FieldPluginBase.php \Drupal\views\Plugin\views\field\views_field_handlers
Handler plugins for Views fields.
Field handlers handle both querying and display of fields in views.
Field handler plugins extend \Drupal\views\Plugin\views\field\FieldPluginBase. They must be attributed with \Drupal\views\Attribute\ViewsField attribute, and they must be in namespace directory Plugin\views\field.
The following items can go into a hook_views_data() implementation in a field section to affect how the field handler will behave:
- additional fields: An array of fields that should be added to the query. The array is in one of these forms:
// Simple form, for fields within the same table.
['identifier' => fieldname]
// Form for fields in a different table.
['identifier' => ['table' => tablename, 'field' => fieldname]]
As many fields as are necessary may be in this array.
- click sortable: If TRUE (default), this field may be click sorted.
See also
Parent topics
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php, line 19
Classes
Title Sort descending | File name | Summary |
---|---|---|
Boolean | core/ |
A handler to provide proper displays for booleans. |
Broken | core/ |
A special handler to take the place of missing or broken handlers. |
Combine | core/ |
Filter handler which allows to search on multiple fields. |
ContactLink | core/ |
Defines a field that links to the user contact page, if access is permitted. |
ContextualLinks | core/ |
Provides a handler that adds contextual links. |
Counter | core/ |
Field handler to show a counter of the current row. |
Custom | core/ |
A handler to provide a field that is completely custom by the administrator. |
Date | core/ |
A handler to provide proper displays for dates. |
DblogMessage | core/ |
Provides a field handler that renders a log event with replaced variables. |
DblogOperations | core/ |
Provides a field handler that renders operation link markup. |
Depth | core/ |
Field handler to display the depth of a comment. |
Dropbutton | core/ |
Provides a handler that renders links as dropbutton. |
EntityField | core/ |
A field that displays entity field data. |
EntityLink | core/ |
Handler for showing comment module's entity links. |
EntityLink | core/ |
Field handler to present a link to an entity. |
EntityLinkDelete | core/ |
Field handler to present a link to delete an entity. |
EntityLinkEdit | core/ |
Field handler to present a link to edit an entity. |
EntityOperations | core/ |
Renders all operations links for an entity. |
FieldFormButtonTest | core/ |
A handler to provide a field that is completely custom by the administrator. |
FieldLanguage | core/ |
Displays the language of an entity. |
FieldPluginBase | core/ |
Base class for views fields. |
FieldPluginBase | core/ |
Base class for views fields. |
File | core/ |
Field handler to provide simple renderer that allows linking to a file. |
FileSize | core/ |
Render a numeric value as a size. |
HistoryUserTimestamp | core/ |
Field handler to display the marker for new content. |
LanguageField | core/ |
Defines a field handler to translate a language into its readable form. |
LastTimestamp | core/ |
Field handler to display the timestamp of a comment with the count of comments. |
LinkApprove | core/ |
Provides a comment approve link. |
LinkBase | core/ |
Field handler to present a link to an entity. |
LinkReply | core/ |
Field handler to present a link to reply to a comment. |
Links | core/ |
An abstract handler which provides a collection of links. |
MachineName | core/ |
Field handler which allows to show machine name content as human name. |
Markup | core/ |
Handler to run a field through check_markup, using a companion format field. |
ModerationStateField | core/ |
A field handler for the computed moderation_state field. |
Node | core/ |
Field handler to provide simple renderer that allows linking to a node. |
NodeCounterTimestamp | core/ |
Field handler to display the most recent time the node has been viewed. |
NodeNewComments | core/ |
Field handler to display the number of new comments. |
NumericField | core/ |
Render a field as a numeric value. |
Permissions | core/ |
Field handler to provide a list of permissions. |
PrerenderList | core/ |
Field handler to provide a list of items. |
RenderedEntity | core/ |
Provides a field handler which renders an entity in a certain view mode. |
RevisionLink | core/ |
Field handler to present a link to a node revision. |
RevisionLinkDelete | core/ |
Field handler to present link to delete a node revision. |
RevisionLinkRevert | core/ |
Field handler to present a link to revert a node to a revision. |
Roles | core/ |
Field handler to provide a list of roles. |
Score | core/ |
Field handler for search score. |
Serialized | core/ |
Field handler to show data of serialized fields. |
Standard | core/ |
Default implementation of the base field plugin. |
StatisticsLastCommentName | core/ |
Field handler to present the name of the last comment poster. |
StatisticsLastUpdated | core/ |
Field handler to display the newer of last comment / node updated. |
StatisticsNumeric | core/ |
Field handler to display numeric values from the statistics module. |
TaxonomyIndexTid | core/ |
Field handler to display all taxonomy terms of a node. |
TermName | core/ |
Displays taxonomy term names and allows converting spaces to hyphens. |
TimeInterval | core/ |
A handler to provide proper displays for time intervals. |
TranslationLink | core/ |
Provides a translation link for an entity. |
Url | core/ |
Field handler to provide simple renderer that turns a URL into a clickable link. |
UserData | core/ |
Provides access to the user data service. |
ViewsField | core/ |
Defines a Plugin annotation object for views field handlers. |
ViewsField | core/ |
Defines a Plugin attribute class for views field handlers. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.