public static function CalendarEvent::getDateFieldName in Opigno calendar event 8
Same name and namespace in other branches
- 3.x src/Entity/CalendarEvent.php \Drupal\opigno_calendar_event\Entity\CalendarEvent::getDateFieldName()
Determines the date field name for the specified bundle.
Parameters
\Drupal\Core\Config\Entity\ConfigEntityInterface $type: The calendar event type entity.
Return value
string The date field type.
3 calls to CalendarEvent::getDateFieldName()
- CalendarEvent::bundleFieldDefinitions in src/
Entity/ CalendarEvent.php - Provides field definitions for a specific bundle.
- CalendarEvent::getDateItems in src/
Entity/ CalendarEvent.php - Returns the calendar event date items.
- opigno_calendar_event_opigno_calendar_event_type_delete in ./
opigno_calendar_event.module - Implements hook_ENTITY_TYPE_delete().
File
- src/
Entity/ CalendarEvent.php, line 113
Class
- CalendarEvent
- Defines the "Calendar event" entity class.
Namespace
Drupal\opigno_calendar_event\EntityCode
public static function getDateFieldName(ConfigEntityInterface $type) {
return 'date_' . static::getDateFieldType($type);
}