function entity_background_get_selector in Entity background 7
Get CSS selector.
Parameters
$entity_type: An entity type which selectors are requested.
2 calls to entity_background_get_selector()
- EntityBackgroundAPITest::testEntityBackgroundTestAPI in tests/
entity_background.test - Test basic APIs.
- entity_background_generate_selector in ./
entity_background.module - Converts a selector string into a proper selector path.
File
- ./
entity_background.module, line 192 - Module file entity background.
Code
function entity_background_get_selector($entity_type) {
$selectors = entity_background_selectors();
if (!empty($selectors[$entity_type])) {
return $selectors[$entity_type];
}
}