public function EntityFormField::getCacheTags in Views Entity Form Field 8
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides CacheableDependencyInterface::getCacheTags
File
- src/
Plugin/ views/ field/ EntityFormField.php, line 281
Class
- EntityFormField
- Defines a views form element for an entity field widget.
Namespace
Drupal\views_entity_form_field\Plugin\views\fieldCode
public function getCacheTags() {
$field_definition = $this
->getBundleFieldDefinition();
$field_storage_definition = $field_definition
->getFieldStorageDefinition();
return Cache::mergeTags($field_definition instanceof CacheableDependencyInterface ? $field_definition
->getCacheTags() : [], $field_storage_definition instanceof CacheableDependencyInterface ? $field_storage_definition
->getCacheTags() : []);
}