function _hashtags_is_field_activated in Hashtags 8
Check weither a hashtags feature is activated for passed field (text)
Parameters
$entity_type:
$bundle:
$field_name:
Return value
boolean
1 call to _hashtags_is_field_activated()
- _hashtags_get_activated_text_fields in ./
hashtags.module - Get the field names of the Text type that have Hashtags flag activated
File
- ./
hashtags.module, line 205
Code
function _hashtags_is_field_activated($entity_type, $bundle, $field_name) {
$field = \Drupal::entityTypeManager()
->getStorage('field_config')
->load("{$entity_type}.{$bundle}.{$field_name}");
return $field
->getThirdPartySetting('hashtags', 'hashtags_activate', FALSE);
}