class SimplemetaEntityMetadataController in Simple Meta 7.2
Class SimplemetaEntityMetadataController.
Controller for generating metadata for SimpleMeta entity type.
Hierarchy
Expanded class hierarchy of SimplemetaEntityMetadataController
1 string reference to 'SimplemetaEntityMetadataController'
- simplemeta_entity_info in ./
simplemeta.module - Implements hook_entity_info().
File
- ./
simplemeta.info.inc, line 122 - Entity API integration, classes, controllers, etc.
View source
class SimplemetaEntityMetadataController extends EntityDefaultMetadataController {
/**
* {@inheritdoc}
*/
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties =& $info[$this->type]['properties'];
$properties['path'] = array(
'type' => 'text',
'label' => t('Path'),
'description' => t('The Drupal path the SimpleMeta entity is related to.'),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'path',
);
$properties['language'] = array(
'type' => 'text',
'label' => t('Source'),
'description' => t('Language of the SimpleMeta'),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'language',
);
$properties['fit'] = array(
'type' => 'integer',
'label' => t('Fit'),
'description' => t('A numeric representation of how specific the path is'),
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'fit',
);
$properties['data'] = array(
'type' => 'struct',
'label' => t('Data'),
'description' => t('Stored metadata'),
'getter callback' => 'entity_property_verbatim_get',
'setter callback' => 'entity_property_verbatim_set',
'schema field' => 'data',
);
return $info;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityDefaultMetadataController:: |
protected | property | ||
EntityDefaultMetadataController:: |
public static | function | A options list callback returning all bundles for an entity type. | |
EntityDefaultMetadataController:: |
protected | function | Return a set of properties for an entity based on the schema definition | |
EntityDefaultMetadataController:: |
public | function | ||
SimplemetaEntityMetadataController:: |
public | function |
Overrides EntityDefaultMetadataController:: |