You are here

public function AvailabilityCalendarICalFeedsProcessor::bundle in Availability Calendars 7.5

Returns the bundle for the target entity.

Return value

string

Throws

\EntityMalformedException

1 call to AvailabilityCalendarICalFeedsProcessor::bundle()
AvailabilityCalendarICalFeedsProcessor::getMappingTargets in ./AvailabilityCalendarICalFeedsProcessor.inc
Declare possible mapping targets that this processor exposes.

File

./AvailabilityCalendarICalFeedsProcessor.inc, line 88

Class

AvailabilityCalendarICalFeedsProcessor
@class ICalendar processor for availability calendars.

Code

public function bundle() {
  $bundle = '';
  $entity = $this
    ->entity_load($this->config['entity_id']);
  if (is_object($entity)) {
    $eids = entity_extract_ids($this
      ->entityType(), $entity);
    $bundle = $eids[2];
  }
  return $bundle;
}