Views field handler plugins in Drupal 9
Same name and namespace in other branches
- 8 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 annotated with \Drupal\views\Annotation\ViewsField annotation, 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.
array('identifier' => fieldname)
// Form for fields in a different table.
array('identifier' => array('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 18
Classes
Name | Location | Description |
---|---|---|
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/ |
Field handler to present a link to an entity. |
EntityLink |
core/ |
Handler for showing comment module's entity links. |
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. |
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/ |
A 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. Definition terms: |
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. |