You are here

function crumbs_MultiPlugin_EntityFindSomething::__construct in Crumbs, the Breadcrumbs suite 7.2

Parameters

crumbs_EntityPlugin $plugin: The object that can actually determine a parent path for the entity.

string $entity_type: The entity type.

string $bundle_key: The key on the $entiy object to determine the bundle.

string $bundle_name: The label for the bundle, e.g. "Node type" or "Vocabulary". This is an untranslated string.

Overrides crumbs_MultiPlugin_EntityFindAbstract::__construct

File

lib/MultiPlugin/EntityFindSomething.php, line 43

Class

crumbs_MultiPlugin_EntityFindSomething

Code

function __construct($plugin, $entity_type, $bundle_key, $bundle_name) {
  $this->entityType = $entity_type;
  $this->bundleKey = $bundle_key;
  $this->bundleName = $bundle_name;
  parent::__construct($plugin);
}