class CerTaxonomyTermReferenceField in Corresponding Entity References 7.3
@file Contains the CER plugin for Taxonomy Term Reference fields.
Hierarchy
- class \FieldInstance
- class \CerField
Expanded class hierarchy of CerTaxonomyTermReferenceField
1 string reference to 'CerTaxonomyTermReferenceField'
- cer_cer_fields in ./
cer.cer.inc - Implements hook_cer_fields().
File
- includes/
fields/ taxonomy_term_reference.inc, line 8 - Contains the CER plugin for Taxonomy Term Reference fields.
View source
class CerTaxonomyTermReferenceField extends CerField {
/**
* Implements CerField::getTargetType().
*/
public function getTargetType() {
return 'taxonomy_term';
}
/**
* @override CerField::getTargetBundles().
*/
public function getTargetBundles() {
$bundles = array();
foreach ($this->settings['allowed_values'] as $item) {
$bundles[] = $item['vocabulary'];
}
return $bundles;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CerField:: |
public | property | ||
CerField:: |
protected | property | The plugin definition. | |
CerField:: |
protected | property | ||
CerField:: |
public | function | Returns a CerFieldHandler subclass instance for the given entity. | |
CerField:: |
public | function |
Overridden. Overrides FieldInstance:: |
|
CerField:: |
public static | function | Returns a single field plugin instance, by its identifier. All plugin instances are statically cached. | |
CerField:: |
public static | function | Returns information about a particular field plugin by its identifier, or all available plugins (i.e., defined by hook_cer_fields()) if no identifier is given. The aggregated result of hook_cer_fields() is statically cached. | |
CerField:: |
public | function |
Overridden. Overrides FieldInstance:: |
|
CerField:: |
public | function |
Constructor. Pretty self-explanatory! Overrides FieldInstance:: |
1 |
CerTaxonomyTermReferenceField:: |
public | function |
@override CerField::getTargetBundles(). Overrides CerField:: |
|
CerTaxonomyTermReferenceField:: |
public | function |
Implements CerField::getTargetType(). Overrides CerField:: |
|
FieldInstance:: |
public | property | The instance bundle. | |
FieldInstance:: |
public | property | The human-readable label of the instance's bundle. | |
FieldInstance:: |
public | property | The cardinality (maximum values) the field supports, or FIELD_CARDINALITY_UNLIMITED. | |
FieldInstance:: |
protected | property | The child of this instance, if any. | |
FieldInstance:: |
public | property | The instance's entity type. | |
FieldInstance:: |
public | property | The human-readable label of the instance's entity type. | |
FieldInstance:: |
public | property | Whether or not this instance's entity type supports bundles. | |
FieldInstance:: |
public | property | The instance's label. | |
FieldInstance:: |
public | property | The field's machine name. | |
FieldInstance:: |
protected | property | The parent of this instance, if any. | |
FieldInstance:: |
public | function | Get or set the child of this field instance. | |
FieldInstance:: |
public | function | Get or set the parent of this field instance. | |
FieldInstance:: |
public | function |