interface OfficeHoursItemListInterface in Office Hours 8
Implements ItemListInterface for OfficeHours.
@package Drupal\office_hours
Hierarchy
- interface \Drupal\Core\TypedData\ListInterface extends \Drupal\Core\TypedData\ArrayAccess \Drupal\Core\TypedData\Countable; interface \Drupal\Core\Access\AccessibleInterface
- interface \Drupal\Core\Field\FieldItemListInterface
- interface \Drupal\office_hours\Plugin\Field\FieldType\OfficeHoursItemListInterface
- interface \Drupal\Core\Field\FieldItemListInterface
Expanded class hierarchy of OfficeHoursItemListInterface
All classes that implement OfficeHoursItemListInterface
1 file declares its use of OfficeHoursItemListInterface
- OfficeHoursFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ OfficeHoursFormatterBase.php
File
- src/
Plugin/ Field/ FieldType/ OfficeHoursItemListInterface.php, line 12
Namespace
Drupal\office_hours\Plugin\Field\FieldTypeView source
interface OfficeHoursItemListInterface extends FieldItemListInterface {
/**
* Returns the items of a field.
*
* @param array $settings
* @param array $field_settings
* @param $time
*
* @return array
* The formatted list of slots.
*
* @usage The function is not used anymore in module, but is used in local
* installations theming in twig, skipping the Drupal field UI/formatters.
* Since twig filters are static methods, using a trait isnt really an option.
* Some installations are also subclassing this class.
*/
public function getRows(array $settings, array $field_settings, $time = NULL);
/**
* Determines if the Entity is Open or Closed.
*
* @param int $time
*
* @return bool
* Indicator whether the entity is Open or Closed at the given time.
*/
public function isOpen($time = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AccessibleInterface:: |
public | function | Checks data value access. | 9 |
FieldItemListInterface:: |
public | function | Contains the default access logic of this field. | 1 |
FieldItemListInterface:: |
public | function | Returns a form for the default value input. | 1 |
FieldItemListInterface:: |
public | function | Processes the submitted default value. | 1 |
FieldItemListInterface:: |
public | function | Validates the submitted default value. | 1 |
FieldItemListInterface:: |
public | function | Defines custom delete behavior for field values. | 1 |
FieldItemListInterface:: |
public | function | Defines custom revision delete behavior for field values. | 1 |
FieldItemListInterface:: |
public | function | Determines equality to another object implementing FieldItemListInterface. | 1 |
FieldItemListInterface:: |
public | function | Filters out empty field items and re-numbers the item deltas. | 1 |
FieldItemListInterface:: |
public | function | Populates a specified number of field items with valid sample data. | 1 |
FieldItemListInterface:: |
public | function | Gets the entity that field belongs to. | 1 |
FieldItemListInterface:: |
public | function | Gets the field definition. | 1 |
FieldItemListInterface:: |
public | function | Gets the langcode of the field values held in the object. | 1 |
FieldItemListInterface:: |
public | function | Returns the value of a given field setting. | 1 |
FieldItemListInterface:: |
public | function | Returns the array of field settings. | 1 |
FieldItemListInterface:: |
public | function | Determines whether the field has relevant changes. | 1 |
FieldItemListInterface:: |
public | function | Defines custom post-save behavior for field values. | 1 |
FieldItemListInterface:: |
public | function | Defines custom presave behavior for field values. | 1 |
FieldItemListInterface:: |
public static | function | Processes the default value before being applied. | 1 |
FieldItemListInterface:: |
public | function | Sets the langcode of the field values held in the object. | 1 |
FieldItemListInterface:: |
public | function | Returns a renderable array for the field items. | 1 |
FieldItemListInterface:: |
public | function | Magic method: Gets a property value of to the first field item. | 1 |
FieldItemListInterface:: |
public | function | Magic method: Determines whether a property of the first field item is set. | 1 |
FieldItemListInterface:: |
public | function | Magic method: Sets a property value of the first field item. | 1 |
FieldItemListInterface:: |
public | function | Magic method: Unsets a property of the first field item. | 1 |
ListInterface:: |
public | function | Appends a new item to the list. | 1 |
ListInterface:: |
public | function | Filters the items in the list using a custom callback. | 1 |
ListInterface:: |
public | function | Returns the first item in this list. | 1 |
ListInterface:: |
public | function | Returns the item at the specified position in this list. | 1 |
ListInterface:: |
public | function |
Gets the data definition. Overrides TypedDataInterface:: |
|
ListInterface:: |
public | function | Gets the definition of a contained item. | 1 |
ListInterface:: |
public | function | Determines whether the list contains any non-empty items. | 1 |
ListInterface:: |
public | function | Removes the item at the specified position. | 1 |
ListInterface:: |
public | function | Sets the value of the item at a given position in the list. | 1 |
OfficeHoursItemListInterface:: |
public | function | Returns the items of a field. | 1 |
OfficeHoursItemListInterface:: |
public | function | Determines if the Entity is Open or Closed. | 1 |
TraversableTypedDataInterface:: |
public | function | React to changes to a child property or item. | 4 |
TypedDataInterface:: |
public | function | Applies the default value. | 1 |
TypedDataInterface:: |
public static | function | Constructs a TypedData object given its definition and context. | 1 |
TypedDataInterface:: |
public | function | Gets a list of validation constraints. | 1 |
TypedDataInterface:: |
public | function | Returns the name of a property or item. | 1 |
TypedDataInterface:: |
public | function | Returns the parent data structure; i.e. either complex data or a list. | 1 |
TypedDataInterface:: |
public | function | Returns the property path of the data. | 1 |
TypedDataInterface:: |
public | function | Returns the root of the typed data tree. | 1 |
TypedDataInterface:: |
public | function | Returns a string representation of the data. | 1 |
TypedDataInterface:: |
public | function | Gets the data value. | 1 |
TypedDataInterface:: |
public | function | Sets the context of a property or item via a context aware parent. | 1 |
TypedDataInterface:: |
public | function | Sets the data value. | 1 |
TypedDataInterface:: |
public | function | Validates the currently set data value. | 1 |