function crumbs_InjectedAPI_Collection_EntityPluginCollection::entityPlugin in Crumbs, the Breadcrumbs suite 7.2
Parameters
string $type: Either 'title' or 'parent'.
string $key: The plugin key under which this callback will be listed on the weights configuration form.
crumbs_EntityPlugin $entity_plugin:
string[]|string|null $types: An array of entity types, or a single entity type, or NULL to allow all entity types.
File
- lib/
InjectedAPI/ Collection/ EntityPluginCollection.php, line 91
Class
Code
function entityPlugin($type, $key, crumbs_EntityPlugin $entity_plugin, $types) {
if ($entity_plugin instanceof crumbs_EntityPlugin) {
$this->entityPlugins[$type][$key] = array(
$entity_plugin,
$types,
);
}
}