protected function DateRecurOccurrences::isDateRecur in Recurring Dates Field 8.2
Same name and namespace in other branches
- 3.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::isDateRecur()
- 3.0.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::isDateRecur()
- 3.1.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::isDateRecur()
Determines if a field is date recur or subclasses date recur.
Parameters
\Drupal\Core\Field\FieldStorageDefinitionInterface $fieldDefinition: A field definition.
Return value
bool Whether field is date recur or subclasses date recur.
3 calls to DateRecurOccurrences::isDateRecur()
- DateRecurOccurrences::getBaseFieldStorages in src/
DateRecurOccurrences.php - Get field storage for date recur base fields for an entity type.
- DateRecurOccurrences::onFieldStorageDefinitionCreate in src/
DateRecurOccurrences.php - Reacts to the creation of a field storage definition.
- DateRecurOccurrences::onFieldStorageDefinitionDelete in src/
DateRecurOccurrences.php - Reacts to the deletion of a field storage definition.
File
- src/
DateRecurOccurrences.php, line 407
Class
- DateRecurOccurrences
- Manages occurrences tables and the data that populates them.
Namespace
Drupal\date_recurCode
protected function isDateRecur(FieldStorageDefinitionInterface $fieldDefinition) : bool {
$typeDefinition = $this->typedDataManager
->getDefinition('field_item:' . $fieldDefinition
->getType());
// @see \Drupal\date_recur\DateRecurCachedHooks::fieldInfoAlter
return isset($typeDefinition[DateRecurOccurrences::IS_DATE_RECUR]);
}