You are here

public static function DateRecurOccurrences::getOccurrenceCacheStorageTableName in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::getOccurrenceCacheStorageTableName()
  2. 3.0.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::getOccurrenceCacheStorageTableName()
  3. 3.1.x src/DateRecurOccurrences.php \Drupal\date_recur\DateRecurOccurrences::getOccurrenceCacheStorageTableName()

Get the name of the table containing occurrences for a field.

Parameters

\Drupal\Core\Field\FieldStorageDefinitionInterface $fieldDefinition: The field definition.

Return value

string A table name.

14 calls to DateRecurOccurrences::getOccurrenceCacheStorageTableName()
DateRecurFilter::query in src/Plugin/views/filter/DateRecurFilter.php
Add this filter to the query.
DateRecurOccurrences::createOccurrenceTable in src/DateRecurOccurrences.php
Creates an occurrence table.
DateRecurOccurrences::fieldStorageDelete in src/DateRecurOccurrences.php
Reacts to field deletion.
DateRecurOccurrences::onEntityDelete in src/DateRecurOccurrences.php
Respond to a entity deletion.
DateRecurOccurrences::onEntityRevisionDelete in src/DateRecurOccurrences.php
Respond to a entity revision deletion.

... See full list

File

src/DateRecurOccurrences.php, line 445

Class

DateRecurOccurrences
Manages occurrences tables and the data that populates them.

Namespace

Drupal\date_recur

Code

public static function getOccurrenceCacheStorageTableName(FieldStorageDefinitionInterface $fieldDefinition) : string {
  return sprintf('date_recur__%s__%s', $fieldDefinition
    ->getTargetEntityTypeId(), $fieldDefinition
    ->getName());
}