interface MultiItemsFieldHandlerInterface in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface
- 9 core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface
Defines a field handler which renders multiple items per row.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\views\Plugin\views\ViewsPluginInterface
- interface \Drupal\views\Plugin\views\ViewsHandlerInterface
- interface \Drupal\views\Plugin\views\field\FieldHandlerInterface
- interface \Drupal\views\Plugin\views\field\MultiItemsFieldHandlerInterface
- interface \Drupal\views\Plugin\views\field\FieldHandlerInterface
- interface \Drupal\views\Plugin\views\ViewsHandlerInterface
- interface \Drupal\views\Plugin\views\ViewsPluginInterface
Expanded class hierarchy of MultiItemsFieldHandlerInterface
All classes that implement MultiItemsFieldHandlerInterface
File
- core/
modules/ views/ src/ Plugin/ views/ field/ MultiItemsFieldHandlerInterface.php, line 10
Namespace
Drupal\views\Plugin\views\fieldView source
interface MultiItemsFieldHandlerInterface extends FieldHandlerInterface {
/**
* Renders a single item of a row.
*
* @param int $count
* The index of the item inside the row.
* @param mixed $item
* The item for the field to render.
*
* @return string
* The rendered output.
*/
public function render_item($count, $item);
/**
* Gets an array of items for the field.
*
* @param \Drupal\views\ResultRow $values
* The result row object containing the values.
*
* @return array
* An array of items for the field.
*/
public function getItems(ResultRow $values);
/**
* Render all items in this field together.
*
* @param array $items
* The items provided by getItems for a single row.
*
* @return string
* The rendered items.
*/
public function renderItems($items);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | |
FieldHandlerInterface:: |
public | function | Renders a field using advanced settings. | |
FieldHandlerInterface:: |
public | function | Adds an ORDER BY clause to the query for click sort columns. | |
FieldHandlerInterface:: |
public | function | Determines if this field is click sortable. | |
FieldHandlerInterface:: |
public | function | Returns the class of the field. | |
FieldHandlerInterface:: |
public | function | Returns the class of the field's label. | |
FieldHandlerInterface:: |
public | function | Returns an HTML element for the label based upon the field's element type. | |
FieldHandlerInterface:: |
public | function | Returns an HTML element based upon the field's element type. | |
FieldHandlerInterface:: |
public | function | Returns the class of the field's wrapper. | |
FieldHandlerInterface:: |
public | function | Returns an HTML element for the wrapper based upon the field's element type. | |
FieldHandlerInterface:: |
public | function | Provides a list of elements valid for field HTML. | |
FieldHandlerInterface:: |
public | function | Gets the entity matching the current row and relationship. | |
FieldHandlerInterface:: |
public | function | Gets the 'render' tokens to use for advanced rendering. | |
FieldHandlerInterface:: |
public | function | Gets the value that's supposed to be rendered. | |
FieldHandlerInterface:: |
public | function | Checks if a field value is empty. | |
FieldHandlerInterface:: |
public | function | Gets this field's label. | |
FieldHandlerInterface:: |
public | function | Runs after every field has been rendered. | |
FieldHandlerInterface:: |
public | function | Runs before any fields are rendered. | 3 |
FieldHandlerInterface:: |
public | function | Renders the field. | |
FieldHandlerInterface:: |
public | function | Performs an advanced text render for the item. | |
FieldHandlerInterface:: |
public | function | Renders row values using $this->themeFunctions() as #theme. | |
FieldHandlerInterface:: |
public | function | Replaces a value with tokens from the last field. | |
FieldHandlerInterface:: |
public | function | Determines if this field will be available as an option to group the result by in the style settings. | |
MultiItemsFieldHandlerInterface:: |
public | function | Gets an array of items for the field. | 1 |
MultiItemsFieldHandlerInterface:: |
public | function | Render all items in this field together. | 1 |
MultiItemsFieldHandlerInterface:: |
public | function | Renders a single item of a row. | 3 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 1 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 1 |
ViewsHandlerInterface:: |
public | function | Check whether given user has access to this handler. | |
ViewsHandlerInterface:: |
public | function | Return a string representing this handler's name in the UI. | |
ViewsHandlerInterface:: |
public | function | Provide text for the administrative summary. | |
ViewsHandlerInterface:: |
public static | function | Breaks x,y,z and x+y+z into an array. | |
ViewsHandlerInterface:: |
public | function | Determines if the handler is considered 'broken', meaning it's a placeholder used when a handler can't be found. | |
ViewsHandlerInterface:: |
public | function | Ensure the main table for this handler is in the query. This is used a lot. | |
ViewsHandlerInterface:: |
public | function | Determines the entity type used by this handler. | |
ViewsHandlerInterface:: |
public | function | Shortcut to get a handler's raw field value. | |
ViewsHandlerInterface:: |
public | function | Get the join object that should be used for this handler. | |
ViewsHandlerInterface:: |
public static | function | Fetches a handler to join one table to a primary table from the data cache. | |
ViewsHandlerInterface:: |
public | function | Run after the view is executed, before the result is cached. | |
ViewsHandlerInterface:: |
public | function | Run before the view is built. | |
ViewsHandlerInterface:: |
public | function | Sanitize the value for output. | |
ViewsHandlerInterface:: |
public | function | Called just prior to query(), this lets a handler set up any relationship it needs. | |
ViewsHandlerInterface:: |
public | function | Shortcut to display the exposed options form. | |
ViewsPluginInterface:: |
public | function | Provide a form to edit options for this plugin. | 1 |
ViewsPluginInterface:: |
public static | function | 3 | |
ViewsPluginInterface:: |
public | function | Clears a plugin. | |
ViewsPluginInterface:: |
public | function | Filter out stored options depending on the defined options. | |
ViewsPluginInterface:: |
public | function | Returns an array of available token replacements. | |
ViewsPluginInterface:: |
public | function | Returns the plugin provider. | |
ViewsPluginInterface:: |
public | function | Adds elements for available core tokens to a form. | |
ViewsPluginInterface:: |
public | function | Returns a string with any core tokens replaced. | |
ViewsPluginInterface:: |
public | function | Initialize the plugin. | 3 |
ViewsPluginInterface:: |
public | function | Return the human readable name of the display. | |
ViewsPluginInterface:: |
public static | function | Moves form elements into fieldsets for presentation purposes. | |
ViewsPluginInterface:: |
public static | function | Flattens the structure of form elements. | |
ViewsPluginInterface:: |
public | function | Add anything to the query that we might need to. | 3 |
ViewsPluginInterface:: |
public | function | Handle any special handling on the validate form. | |
ViewsPluginInterface:: |
public | function | Returns the summary of the settings in the display. | |
ViewsPluginInterface:: |
public | function | Provide a full list of possible theme templates used by this style. | |
ViewsPluginInterface:: |
public | function | Unpack options over our existing defaults, drilling down into arrays so that defaults don't get totally blown away. | |
ViewsPluginInterface:: |
public | function | Returns the usesOptions property. | |
ViewsPluginInterface:: |
public | function | Validate that the plugin is correct and can be saved. | |
ViewsPluginInterface:: |
public | function | Validate the options form. |